Initial commit

This commit is contained in:
Jae Kwon
2016-02-05 23:16:33 -08:00
commit d31a8d8258
3 changed files with 321 additions and 0 deletions
+30
View File
@@ -0,0 +1,30 @@
package types
import (
"github.com/tendermint/go-crypto"
)
type Tx struct {
Inputs []Input
Outputs []Output
}
type Input struct {
PubKey crypto.PubKey
Amount uint64
Sequence uint
Signature crypto.Signature
}
type Output struct {
PubKey crypto.PubKey
Amount uint64
}
type Account struct {
Sequence uint
Balance uint64
// For convenience
crypto.PubKey `json:"-"`
}