namesrv

package
v0.0.6 Latest Latest
Warning

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

Go to latest
Published: Jul 9, 2019 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RawIdentityTx

type RawIdentityTx struct {
	KRecovery_p        string // ecdsa.PublicKey
	KRevocation_p      string // ecdsa.PublicKey
	KSignOperational_p string // ecdsa.PublicKey
	IdRelayer          *core.ID
	// contains filtered or unexported fields
}

RawIdentityTx is TODO

type Service

type Service interface {
	VinculateId(name string, domain string, id core.ID) (*core.ClaimAssignName, error)
	ResolvClaimAssignName(name string) (*core.ClaimAssignName, error)
}

type ServiceImpl

type ServiceImpl struct {
	// contains filtered or unexported fields
}

func New

func New(claimsrv claimsrv.Service, signer signsrv.Service, domain string) *ServiceImpl

func (*ServiceImpl) ResolvClaimAssignName

func (ns *ServiceImpl) ResolvClaimAssignName(name string) (*core.ClaimAssignName, error)

ResolvClaimAssignName returns the ClaimAssignName from the merkletree, given a name

func (*ServiceImpl) VinculateId

func (ns *ServiceImpl) VinculateId(name string, domain string,
	id core.ID) (*core.ClaimAssignName, error)

VinculateId creates an adds a ClaimAssignName vinculating a name and an id, into the merkletree

type VinculateIdMsg

type VinculateIdMsg struct {
	// This kind of message does not need the caducity
	Id         core.ID                `json:"id" binding:"required"` // temp, will be calculated directly from RawIdentityTx
	Name       string                 `json:"name" binding:"required"`
	Signature  *utils.SignatureEthMsg `json:"signature" binding:"required"` // hex format
	KSignPk    *utils.PublicKey       `json:"kSignPk" binding:"required"`
	ProofKSign core.ProofClaim        `json:"proofKSign" binding:"required"`
}

VinculateIdMsg is the structure that contains a request to assign an ethereum address to a name.

func (*VinculateIdMsg) Bytes

func (m *VinculateIdMsg) Bytes() []byte

Bytes returns the byte array serialization of VinculateIdMsg

Jump to

Keyboard shortcuts

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