principal

package
v0.0.0-...-9a6596d Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 31, 2021 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var AnonymousID = Principal([]byte{0x04})

AnonymousID is used for the anonymous caller. It can be used in call and query requests without a signature.

Functions

This section is empty.

Types

type Principal

type Principal []byte

Principal are generic identifiers for canisters, users and possibly other concepts in the future.

func Decode

func Decode(s string) (Principal, error)

Decode converts a textual representation into a principal.

func NewSelfAuthenticating

func NewSelfAuthenticating(pub []byte) Principal

NewSelfAuthenticating returns a self authenticating principal identifier based on the given public key.

func (Principal) Encode

func (p Principal) Encode() string

Encode converts the principal to its textual representation.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL