Mudamos LibCrypto
A module for mudamos that implements wallets and seeds fro Blockchain.
This library is distributed in the npm packaging systems.
npm install mudamos-libcrypto
There are many examples of how to use it on the developer guide below.
var MudamosLibCrypto = require('mudamos-libcrypto');
MudamosLibCrypto.createSeed('BRAZILIAN-PORTUGUESE', 'ExtraEntropy');
Parameters
Language: ENGLISH, BRAZILIAN-PORTUGUESE
ExtraEntropy: Any string
Return
String
Obs.: Extraentroy is used to generate extra random seed
MudamosLibCrypto.createSeedAndWallet('BRAZILIAN-PORTUGUESE', 'ExtraEntropy');
Parameters
Language: ENGLISH, BRAZILIAN-PORTUGUESE
ExtraEntropy: Any string
Return
Wallet {
message: string,
success: boolean,
publicKey: string,
seed: string
}
Obs.: Extraentroy is used to generate extra random seed
let result = MudamosLibCrypto.validateSeed('veterano pelicula verdadeiro cambalhota curso poeta coisa balanco patife companhia governo regra');
Parameters
Seed: String of 12 words
Return
Boolean
let result = MudamosLibCrypto.validateSeedWithLang('BRAZILIAN-PORTUGUESE','veterano pelicula verdadeiro cambalhota curso poeta coisa balanco patife companhia governo regra');
Parameters
Language: ENGLISH,BRAZILIAN-PORTUGUESE
Seed: String of 12 words
Return
Boolean
let wallet = MudamosLibCrypto.createWallet('veterano pelicula verdadeiro cambalhota curso poeta coisa balanco patife companhia governo regra');
Parameters
Seed: String of 12 words
Return
PublicKey as Wallet address
let seed = 'lagosta diario mesmo dificil plastico grade escondido mergulho acolher remeter areia herdar';
let publicKey = '1JLFmGH679akX7uyUTcGzRoCVNjdYUagaA';
let result = MudamosLibCrypto.validateWallet(seed,publicKey);
Parameters
Seed: String of 12 words
PublicKey = Wallet address
Return
Boolean
let seed = 'lagosta diario mesmo dificil plastico grade escondido mergulho acolher remeter areia herdar';
let message = 'Message'
let difficulty = 5
let result = MudamosLibCrypto.signMessage(seed,message,difficulty);
Parameters
Seed: String of 12 words
Message = Any words
Return
block = String as [message];[wallet];[signature];nonce
let publicKey = '1JLFmGH679akX7uyUTcGzRoCVNjdYUagaA'
let message = 'Message';
let signature = 'IDPyblrXKujgcw4fQXBLgEThNs18LWOkrVYwA8WOQrJUSGrT+mIuiL17aWm72GcMO4SsK24j/vZXl5mAj5tPQIc=';
let result = MudamosLibCrypto.verifyMessage(publicKey, message, signature);
Parameters
PublicKey = Wallet address
Message = Any words
Signature: Encrypted text message
Return
Boolean
See CONTRIBUTING.md on the main mudamos-libcrypto repo for information about how to contribute.