public interface KeyPairBuilder
| Modifier and Type | Method and Description |
|---|---|
byte[] |
convertFromDER(byte[] signed) |
byte[] |
convertToDER(byte[] signed) |
PublicKey |
createPublicKey(byte[] publicKey)
Creates a public key from the provided raw bytes
|
KeyPair |
generateKeyPair(byte[] seed)
Generates a new key pair
|
Algorithm |
getAlgorithm()
The algorithm of the signer
|
byte[] |
getPublicKeyRawBytes(PublicKey publicKey)
Obtains the raw bytes from a public key so can be used in casper types
|
boolean |
isSupportedPublicKey(PublicKey publicKey)
Indicates if the provided public key has an algorithm that is supported by this signer
|
KeyPair generateKeyPair(@Nullable byte[] seed)
seed - the optional entropy source to be used when generating a key pairAlgorithm getAlgorithm()
boolean isSupportedPublicKey(PublicKey publicKey)
publicKey - the public key to testbyte[] getPublicKeyRawBytes(PublicKey publicKey)
publicKey - the public key to obtain the raw bytes fromPublicKey createPublicKey(byte[] publicKey)
publicKey - the public key raw bytesbyte[] convertFromDER(byte[] signed)
byte[] convertToDER(byte[] signed)
Copyright © 2022. All rights reserved.