Create skeleton for revocation methods
* Just rusty’s shachain for now
This commit is contained in:
1 parent
b2522ef75a
commit
07984836e4
4 files changed
+13
-5
No files matched your search
@@ -0,0 +1,10 @@
|
||||
package revocation
|
||||
|
||||
// TODO(roasbeef):
|
||||
// * fin..later
|
||||
// * reg HD Chain
|
||||
// * Codeshark's sub-branch proposal
|
||||
// * Rusty's hypercube shachain
|
||||
// * more...idk?
|
||||
type VerifiableRevocation interface {
|
||||
}
|
||||
@@ -0,0 +1,30 @@
|
||||
package revocation
|
||||
|
||||
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?
|
||||
return nil
|
||||
}
|
||||
|
||||
// NextHash...
|
||||
func (s *ShaChain) NextHash() {
|
||||
}
|
||||
|
||||
// GetHash...
|
||||
func (s *ShaChain) GetHash(index uint64) {
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
package revocation
|
||||
Reference in new issue
Block a user