Documentation ¶
Index ¶
Constants ¶
View Source
const ( Empty byte = iota Fork Labeled Leaf Pruned )
View Source
const IC_REQUEST_DOMAIN_SEPARATOR = "\x0Aic-request"
View Source
const IC_STATE_ROOT_DOMAIN_SEPARATOR = "\x0Dic-state-root"
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Agent ¶
type Agent struct {
// contains filtered or unexported fields
}
type Certificate ¶
type Implementation ¶
type Implementation struct { // Source is the canonical location of the source code. Source string // Version is the version number of the implementation. Version string // Revision is the precise git revision of the implementation. Revision string }
Implementation identifies the implementation of the Internet Computer.
type QueryResponse ¶
type Request ¶
type Request struct { Type RequestType `cbor:"request_type,omitempty"` // The user who issued the request. Sender principal.Principal `cbor:"sender,omitempty"` // Arbitrary user-provided data, typically randomly generated. This can be // used to create distinct requests with otherwise identical fields. Nonce []byte `cbor:"nonce,omitempty"` // An upper limit on the validity of the request, expressed in nanoseconds // since 1970-01-01 (like ic0.time()). IngressExpiry uint64 `cbor:"ingress_expiry,omitempty"` // The principal of the canister to call. CanisterID principal.Principal `cbor:"canister_id"` // Name of the canister method to call. MethodName string `cbor:"method_name,omitempty"` // Argument to pass to the canister method. Arguments []byte `cbor:"arg,omitempty"` // Paths (sequence of paths): A list of paths, where a path is itself a sequence of blobs. Paths [][][]byte `cbor:"paths,omitempty"` }
DOCS: https://smartcontracts.org/docs/interface-spec/index.html#http-call
type RequestID ¶
type RequestID [32]byte
func EncodeRequestID ¶
type RequestType ¶
type RequestType = string
const ( RequestTypeCall RequestType = "call" RequestTypeQuery RequestType = "query" RequestTypeReadState RequestType = "read_state" )
type Status ¶
type Status struct { // Identifies the interface version supported. Version string // Impl describes the implementation of the Internet Computer. Impl *Implementation // The public identity (a DER-encoded BLS identity) of the root identity of this Internet Computer instance. RootKey []byte }
Status describes various status fields of the Internet Computer.
func (*Status) UnmarshalCBOR ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.