Principal

Module for interacting with Principals (users and canisters)

type Principal = Prim.Types.Principal

public func fromActor(a : actor { }) : Principal

public func toLedgerAccount(principal : Principal, subAccount : ?Blob) : Blob

public func toBlob(p : Principal) : Blob

public func fromBlob(b : Blob) : Principal

public func toText(p : Principal) : Text

public func fromText(t : Text) : Principal

public func anonymous() : Principal

public func isAnonymous(p : Principal) : Bool

public func isController(p : Principal) : Bool

public func hash(principal : Principal) : Hash.Hash

public func compare(principal1 : Principal, principal2 : Principal) : Order.Order

public func equal(principal1 : Principal, principal2 : Principal) : Bool