Translations: API/15/ko
From ArdorDocs
Operation | Code | Return |
---|---|---|
Sign | NRS.signBytes(hexStringMessage, secretPhrase)
|
Hex String
|
Verify | NRS.verifySignature(hexSignature, hexStringMessage, hexPublicKey, callback)
|
boolean
|
Encrypt | NRS.encryptNote(), NRS.encryptData() – see test.nrs.encryption.js
|
encrypted message, nonce
|
Decrypt | NRS.decryptNote(), NRS.decryptData() - see test.nrs.encryption.js
|
Decrypted message, shared key
|
Sha256 | CryptoJS.algo.SHA256.create(), update(), finalize()
|
word array
|
Compress | pako.gzip(new Uint8Array(bytes))
|
byte array
|
Uncompress | pako.inflate(new Uint8Array(bytes))
|
byte array
|