Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ClaimAuthority ¶
type Reward ¶
type Reward struct {
ClaimAuthorities []ClaimAuthority `json:"claim_authorities"`
Amount uint64 `json:"amount"`
RewardId string `json:"reward_id"`
Name string `json:"name"`
}
type RewardAttester ¶
type RewardAttester struct {
EthereumAddress string
EthereumKey *ecdsa.PrivateKey
Rewards []Reward
}
func NewRewardAttester ¶
func NewRewardAttester(ethereumKey *ecdsa.PrivateKey, rewards []Reward) *RewardAttester
func (*RewardAttester) Attest ¶
func (rs *RewardAttester) Attest(claim RewardClaim) (message []byte, signature string, err error)
func (*RewardAttester) Authenticate ¶
func (rs *RewardAttester) Authenticate(claim RewardClaim, signature string) error
func (*RewardAttester) Validate ¶
func (rs *RewardAttester) Validate(claim RewardClaim) error
Click to show internal directories.
Click to hide internal directories.