Return a copy of the key pair.
Get the principal represented by this identity. Normally should be a
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-serializable object.
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
generates an identity from a public and private key. Please ensure that you are generating these keys securely and protect the user's private key
generates an identity from an existing secret key, and is the correct method to generate an identity from a seed phrase. Please ensure you protect the user's private key.
Generates an identity. If a seed is provided, the keys are generated from the seed according to BIP 0032. Otherwise, the key pair is randomly generated. This method throws an error in case the seed is not 32 bytes long or invalid for use as a private key.
the optional seed
Generated using TypeDoc