lib/Account

type Account = { owner : Principal; subaccount : ?Blob }

type ParseError = {#malformed : Text; #not_canonical; #bad_checksum}

public func toText() : Text

Converts an account to text.

public func fromText(text : Text) : Result.Result<Account, ParseError>

Parses account from its textual representation.

public func checkSum(owner : Principal, subaccount : Blob) : Text