Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrAlreadyKeyed denotes that this address has already been key'd ErrAlreadyKeyed = errors.New("account already key'ed") )
Functions ¶
This section is empty.
Types ¶
type MasterKey ¶
type MasterKey struct {
// contains filtered or unexported fields
}
MasterKey encapslates the master key for the longy game
func NewMasterKey ¶
NewMasterKey is the constructor for `Key`. A new secp256k1 is generated if empty. The `chainID` is used when generating RekeyTransactions to prevent cross-chain replay attacks
func (*MasterKey) SendKeyTransaction ¶
func (mk *MasterKey) SendKeyTransaction( attendeeAddr sdk.AccAddress, newPublicKey tmcrypto.PubKey, commitment util.Commitment, ) error
SendKeyTransaction generates a `RekeyMsg`, authorized by the master key. The transaction bytes generated are created using the cosmos-sdk/x/auth module's StdSignDoc.
Click to show internal directories.
Click to hide internal directories.