Modules§
- signature_
map - Maintains signatures with associated expirations.
Structs§
- Canister
Sig - A canister signature, see https://internetcomputer.org/docs/current/references/ic-interface-spec#canister-signatures
- Canister
SigPublic Key - A public key of canister signatures, see https://internetcomputer.org/docs/current/references/ic-interface-spec#canister-signatures
- IC_
ROOT_ PUBLIC_ KEY - The IC root public key used when verifying canister signatures.
Constants§
- CANISTER_
SIG_ PK_ DER_ OID - CANISTER_
SIG_ PK_ DER_ PREFIX_ LENGTH - DELEGATION_
SIG_ DOMAIN - Signature domain for IC request auth delegations as specified in the IC interface specification: https://internetcomputer.org/docs/current/references/ic-interface-spec/#authentication
- IC_
ROOT_ PK_ DER - IC_
ROOT_ PK_ DER_ PREFIX - IC_
ROOT_ PK_ LENGTH
Functions§
- delegation_
signature_ msg - Computes the signing input for a signature on an IC request authentication delegation.
It can be used in conjunction with the DELEGATION_SIG_DOMAIN to create
a signed
sender_delegation
. Relevant part of the IC interface specification: https://internetcomputer.org/docs/current/references/ic-interface-spec#authentication - extract_
raw_ canister_ sig_ pk_ from_ der - Verifies the structure given public key in DER-format, and returns raw bytes of the key.
- extract_
raw_ root_ pk_ from_ der - Verifies the structure given public key in DER-format, and returns raw bytes of the key.
- hash_
bytes - hash_
with_ domain - parse_
canister_ sig_ cbor - Parses the given bytes as a CBOR-encoded
CanisterSig
-struct.