Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddressToPubkey ¶
AddressToPubkey convert address to public key
func PubkeyToAddress ¶
PubkeyToAddress Convert PublicKey to Address
Types ¶
type Account ¶
type Account struct { Address string `json:"address"` Referrer string `json:"referrer"` Groups map[string]*Group `json:"groups"` Permissions map[string]*Permission `json:"permissions"` }
Account type of a permission tree
func NewInitAccount ¶
NewInitAccount new account with owner and active
type AddressKeyPair ¶
type AddressKeyPair struct { Algorithm crypto.Algorithm Address string Pubkey []byte Seckey []byte }
AddressKeyPair address with keypair
func NewAddress ¶
func NewAddress(seckey []byte, algo crypto.Algorithm) (*AddressKeyPair, error)
NewAddress to create an address
type Item ¶
type Item struct { ID string `json:"id"` // key pair id Permission string `json:"permission"` IsKeyPair bool `json:"is_key_pair"` Weight int `json:"weight"` }
Item identity of a permission owner
Click to show internal directories.
Click to hide internal directories.