mirror of
https://github.com/fluencelabs/tendermint
synced 2025-04-25 23:02:16 +00:00
24 lines
339 B
Go
24 lines
339 B
Go
|
package accounts
|
||
|
|
||
|
import (
|
||
|
. "github.com/tendermint/tendermint/binary"
|
||
|
)
|
||
|
|
||
|
type Account struct {
|
||
|
Name String
|
||
|
PubKey ByteSlice
|
||
|
}
|
||
|
|
||
|
func (self *Account) Verify(msg ByteSlice, sig ByteSlice) bool {
|
||
|
return false
|
||
|
}
|
||
|
|
||
|
type MyAccount struct {
|
||
|
Account
|
||
|
PrivKey ByteSlice
|
||
|
}
|
||
|
|
||
|
func (self *MyAccount) Sign(msg ByteSlice) ByteSlice {
|
||
|
return nil
|
||
|
}
|