Documentation ¶
Index ¶
Constants ¶
View Source
const DerPrefix = "308182301d060d2b0601040182dc7c0503010201060c2b0601040182dc7c05030201036100"
DerPrefix is the DER prefix of IC main net.
View Source
const RootKey = "" /* 266-byte string literal not displayed */
RootKey is the root key of IC main net.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Cert ¶
type Cert struct { // Tree is the certificate tree. Tree hashtree.HashTree `cbor:"tree"` // Signature is the signature of the certificate tree. Signature []byte `cbor:"signature"` // Delegation is the delegation of the certificate. Delegation *Delegation `cbor:"delegation"` }
Cert is a certificate gets returned by the IC.
type Certificate ¶
Certificate is a certificate that gets returned by the IC and can be used to verify the state root based on the root key and canister ID.
type Delegation ¶
type Delegation struct { // SubnetId is the subnet ID of the delegation. SubnetId principal.Principal `cbor:"subnet_id"` // The nested certificate typically does not itself again contain a // delegation, although there is no reason why agents should enforce that // property. Certificate Certificate `cbor:"certificate"` }
Delegation is a delegation of a certificate.
func (*Delegation) UnmarshalCBOR ¶
func (d *Delegation) UnmarshalCBOR(bytes []byte) error
UnmarshalCBOR unmarshals a delegation.
Click to show internal directories.
Click to hide internal directories.