Return a copy of the key pair.
Get the principal represented by this identity. Normally should be a
Principal.selfAuthenticating()
.
Return the public key.
Signs a blob of data, with this identity's private key.
challenge to sign with this identity's secretKey, producing a signature
Serialize this key to JSON.
Transform a request into a signed version of the request. This is done last after the transforms on the body of a request. The returned object can be anything, but must be serializable to CBOR.
internet computer request to transform
Generate a new Ed25519KeyIdentity.
a 32-byte seed for the private key. If not provided, a random seed will be generated.
Ed25519KeyIdentity
Verify
signature to verify
message to verify
public key
Generated using TypeDoc
Ed25519KeyIdentity is an implementation of SignIdentity that uses Ed25519 keys. This class is used to sign and verify messages for an agent.