Create skeleton for revocation methods

* Just rusty’s shachain for now
This commit is contained in:
Olaoluwa Osuntokun committed 2015-12-16 14:39:05 -06:00
1 parent b2522ef75a
commit 07984836e4
4 files changed
+13 -5

No files matched your search

-32
View File
@@ -1,32 +0,0 @@
package wallet
import "github.com/btcsuite/btcd/wire"
// TODO(roasbeef): port Rusty's hash-chain stuff
// * or just use HD chains based off of CodeShark's proposal?
// chainFragment...
type chainFragment struct {
index uint64
hash wire.ShaHash
}
// ShaChain...
type ShaChain struct {
lastChainIndex uint64
chainFragments []chainFragment
}
// NewShaChain...
func NewShaChain(seed wire.ShaHash) *ShaChain {
// TODO(roasbeef): from/to or static size?
}
// NextHash...
func (s *ShaChain) NextHash() {
}
// GetHash...
func (s *ShaChain) GetHash(index uint64) {
}
-1
View File
@@ -1 +0,0 @@
package wallet