Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func HostAndPort ¶
HostAndPort will parse the `address` into it's host and port. An error is returned if address is in the incorrect format, expected; "host:port"
func IDToAddress ¶
func IDToAddress(id string) sdk.AccAddress
IDToAddress will deterministically calculate an `sdk.AccAddress` using the given `id`
func Secp256k1FromHex ¶
Secp256k1FromHex parses the hex-encoded `key` string
Types ¶
type Commitment ¶
type Commitment []byte
Commitment is the Pedersen Commitmentment
func CreateCommitment ¶
func CreateCommitment() (secret string, commitment Commitment)
CreateCommitment will return a newly generated secret with it's corresponding Commitment
func NewCommitment ¶
func NewCommitment(secret []byte) Commitment
NewCommitment will create a Commitmentment using `secret`
func (Commitment) Bytes ¶
func (c Commitment) Bytes() []byte
Bytes returns the underlying bytes of this commitment
func (Commitment) Empty ¶
func (c Commitment) Empty() bool
Empty is an indicator for a nil Commitment
func (Commitment) Len ¶
func (c Commitment) Len() int
Len returns the byte length of this commitment {
func (Commitment) VerifyReveal ¶
func (c Commitment) VerifyReveal(secret string) bool
VerifyReveal will verify the Commitmentment against `reveal`
func (Commitment) VerifyRevealBytes ¶
func (c Commitment) VerifyRevealBytes(secret []byte) bool
VerifyRevealBytes will verifty against `reveal`