revocation: HyperShaChan sounds cooler...

This commit is contained in:
Olaoluwa Osuntokun 2015-12-16 14:43:59 -06:00
parent 1621b8cc99
commit 69936d694c
2 changed files with 7 additions and 7 deletions

@ -8,23 +8,23 @@ type chainFragment struct {
hash wire.ShaHash
}
// ShaChain...
type ShaChain struct {
// HyperShaChain...
type HyperShaChain struct {
lastChainIndex uint64
chainFragments []chainFragment
}
// NewShaChain...
func NewShaChain(seed wire.ShaHash) *ShaChain {
// NewHyperShaChain...
func NewHyperShaChain(seed wire.ShaHash) *HyperShaChain {
// TODO(roasbeef): from/to or static size?
return nil
}
// NextHash...
func (s *ShaChain) NextHash() {
func (s *HyperShaChain) NextHash() {
}
// GetHash...
func (s *ShaChain) GetHash(index uint64) {
func (s *HyperShaChain) GetHash(index uint64) {
}

@ -10,7 +10,7 @@ import (
)
type LightningChannel struct {
shachan *revocation.ShaChain
shachan *revocation.HyperShaChain
wallet *LightningWallet
channelEvents *chainntnfs.ChainNotifier