2015-12-16 23:39:05 +03:00
|
|
|
package revocation
|
2015-11-19 01:59:51 +03:00
|
|
|
|
|
|
|
import "github.com/btcsuite/btcd/wire"
|
|
|
|
|
|
|
|
// 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?
|
2015-12-16 23:39:05 +03:00
|
|
|
return nil
|
2015-11-19 01:59:51 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
// NextHash...
|
|
|
|
func (s *ShaChain) NextHash() {
|
|
|
|
}
|
|
|
|
|
|
|
|
// GetHash...
|
|
|
|
func (s *ShaChain) GetHash(index uint64) {
|
|
|
|
}
|