The mode used when installing a canister.
A public key that is DER encoded. This is a branded ArrayBuffer.
A signature array buffer.
A DER encoded SEQUENCE(OID)
for DER-encoded-COSE
A DER encoded SEQUENCE(OID)
for the Ed25519 algorithm
A DER encoded SEQUENCE(OID)
for secp256k1 with the ECDSA algorithm
primary key: Uint8Array
signature: Uint8Array
message: Uint8Array
boolean
Checks two array buffers for equality.
array buffer 1
array buffer 2
boolean
Returns a true ArrayBuffer from an ArrayBufferLike object.
a buffer-like object
ArrayBuffer
array buffer 1
array buffer 2
number - negative if b1 < b2, positive if b1 > b2, 0 if b1 === b2
Concatenate multiple array buffers.
The buffers to concatenate.
Create a management canister actor.
Create an IdentityDescriptor from a @dfinity/identity Identity
identity describe in returned descriptor
Retrieves the Candid interface for the specified canister.
A string corresponding to the canister ID
The agent to use for the request (usually an HttpAgent
)
Candid source code
Find a label in a tree
the label to find
the tree to search
LabelLookupResult
Transforms a hexadecimal string into an array buffer.
The hexadecimal string to use.
Create a management canister actor
a CallConfig
sha256 hash the provided Buffer
input to hash function
Hash a map into an ArrayBuffer using the representation-independent-hash function. https://sdk.dfinity.org/docs/interface-spec/index.html#hash-of-map
Any non-nested object
ArrayBuffer
Make a human readable string out of a hash tree.
the tree to stringify
unknown value
ArrayBuffer
Maps the default fetch headers field to the serializable HttpHeaderField.
Fetch definition of the headers type
array of header fields
utility function to constrain the type of a path
the result of a lookup
ArrayBuffer or Undefined
Lookup a path in a tree
the path to look up
the tree to search
LookupResult
Create a transform that adds a delay (by default 5 minutes) to the expiry.
The delay to add to the call time, in milliseconds.
Create a random Nonce, based on random values
Create a Nonce transform, which takes a function that returns a Buffer, and adds it as the nonce to every call requests.
A function that returns a buffer. By default uses a semi-random method.
Polls the IC to check the status of the given request then returns the response bytes once the request has been processed.
The agent to use to poll read_state.
The effective canister ID.
The Request ID to poll status for.
A polling strategy.
Request for the readState call.
optional replacement function that verifies the BLS signature of a certificate.
Generates a random unsigned 32-bit integer between 0 and 0xffffffff
a random number
the tree to reconstruct
Get the RequestId of the provided ic-ref request. RequestId is the result of the representation-independent-hash function. https://sdk.dfinity.org/docs/interface-spec/index.html#hash-of-map
ic-ref request to hash into RequestId
Transforms a buffer to an hexadecimal string. This will use the buffer as an Uint8Array.
The buffer to return the hexadecimal string of.
Returns a true ArrayBuffer from a Uint8Array, as Uint8Array.buffer is unsafe.
Uint8Array to convert
ArrayBuffer
Extracts a payload from the given derEncoded
data, and checks that it was tagged with the given oid
.
derEncoded = SEQUENCE(oid, BITSTRING(payload))
The DER encoded and tagged data
The DER encoded (and SEQUENCE wrapped!) expected OID
The unwrapped payload
Wraps the given payload
in a DER encoding tagged with the given encoded oid
like so:
SEQUENCE(oid, BITSTRING(payload))
The payload to encode as the bit string
The DER encoded (and SEQUENCE wrapped!) OID to tag the payload with
Generated using TypeDoc
A subclass of an actor. Actor class itself is meant to be a based class.