- Preparing search index...
- The search index is not available
casper-storage
Methods
createPublicKey
- createPublicKey(privateKey, compressed?): Promise<Uint8Array>
-
Parameters
-
privateKey: Hex
-
Optional
compressed: boolean
Returns Promise<Uint8Array>
generatePrivateKey
- generatePrivateKey(): Promise<Uint8Array>
-
Returns Promise<Uint8Array>
a random array value
getKeyInPEM
- getKeyInPEM(key, isPrivate): string
-
Parameters
-
key: Uint8Array
-
isPrivate: boolean
Returns string
isValidPrivateKey
- isValidPrivateKey(privateKey): boolean
-
Returns boolean
publicKeyTweakAdd
- publicKeyTweakAdd(publicKey, tweak, compressed?): Promise<Uint8Array>
-
Parameters
-
publicKey: Hex
-
tweak: Hex
-
Optional
compressed: boolean
Returns Promise<Uint8Array>
Common interface for asymetric keys (ed25519, secp256k1). To provdie all minimal and common functions