Documentation ¶
Index ¶
- Variables
- type Information
- type Profile
- func (p *Profile) EthereumAddress() (common.Address, error)
- func (p *Profile) EthereumPublicKey() ([]byte, error)
- func (p *Profile) Hash() (mh.Multihash, error)
- func (p *Profile) IdentityPublicKey() (ed25519.PublicKey, error)
- func (p Profile) SignaturesValid() (bool, error)
- func (p *Profile) ToProtobuf() (*pb.Profile, error)
- func (p *Profile) ValidEthereumSignature(msg [32]byte, signature [65]byte) (bool, error)
- func (p *Profile) ValidIdentitySignature(msg, signature []byte) (bool, error)
- type Signatures
Constants ¶
This section is empty.
Variables ¶
Functions ¶
This section is empty.
Types ¶
type Information ¶
type Profile ¶
type Profile struct { Information Information Signatures Signatures }
func SignProfile ¶
func SignProfile(name, location, image string, km km.KeyManager) (*Profile, error)
sign the metadata with identity and ethereum key
func SignWithKeyManagerStore ¶
func SignWithKeyManagerStore(name, location, image string, keyManagerStore km.Store, password string) (*Profile, error)
sign's a profile without the need to start panthalassa
func (*Profile) EthereumAddress ¶
get ethereum address based on profile ethereum public key
func (*Profile) EthereumPublicKey ¶
func (*Profile) IdentityPublicKey ¶
func (Profile) SignaturesValid ¶
check if signatures of profile are correct
func (*Profile) ToProtobuf ¶
Convert profile to protobuf
func (*Profile) ValidEthereumSignature ¶
Validate signature based on the ethereum public key
type Signatures ¶
Click to show internal directories.
Click to hide internal directories.