@helium/crypto-react-native
Advanced tools
Comparing version 4.3.1 to 4.5.0
@@ -23,5 +23,5 @@ /// <reference types="node" /> | ||
static fromEntropy(entropy: Uint8Array | Buffer, netType?: NetType): Promise<Keypair>; | ||
sign(message: string | Uint8Array): Promise<Buffer>; | ||
sign(message: string | Uint8Array): Promise<Uint8Array>; | ||
} | ||
export {}; | ||
//# sourceMappingURL=Keypair.d.ts.map |
@@ -65,3 +65,3 @@ "use strict"; | ||
const signature = await react_native_sodium_1.default.crypto_sign_detached(messageBuffer.toString('base64'), this.privateKey.toString('base64')); | ||
return Buffer.from(signature, 'base64'); | ||
return Uint8Array.from(Buffer.from(signature, 'base64')); | ||
} | ||
@@ -68,0 +68,0 @@ } |
{ | ||
"name": "@helium/crypto-react-native", | ||
"version": "4.3.1", | ||
"version": "4.5.0", | ||
"description": "Cryptography utilities including mnemonics, keypairs and base58-check encoding for React Native", | ||
@@ -35,3 +35,3 @@ "keywords": [ | ||
}, | ||
"gitHead": "8c5383e40ac2c1292481774384c8564bde72123a" | ||
"gitHead": "d8a503d6e8fae57f5da90dd4beca25ea276e72cc" | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
59951