Create skeleton for revocation methods
* Just rusty’s shachain for now
This commit is contained in:
parent
b2522ef75a
commit
07984836e4
10
revocation/revocation.go
Normal file
10
revocation/revocation.go
Normal file
@ -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 {
|
||||||
|
}
|
@ -1,10 +1,7 @@
|
|||||||
package wallet
|
package revocation
|
||||||
|
|
||||||
import "github.com/btcsuite/btcd/wire"
|
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...
|
// chainFragment...
|
||||||
type chainFragment struct {
|
type chainFragment struct {
|
||||||
index uint64
|
index uint64
|
||||||
@ -21,6 +18,7 @@ type ShaChain struct {
|
|||||||
// NewShaChain...
|
// NewShaChain...
|
||||||
func NewShaChain(seed wire.ShaHash) *ShaChain {
|
func NewShaChain(seed wire.ShaHash) *ShaChain {
|
||||||
// TODO(roasbeef): from/to or static size?
|
// TODO(roasbeef): from/to or static size?
|
||||||
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
// NextHash...
|
// NextHash...
|
1
revocation/shachain_test.go
Normal file
1
revocation/shachain_test.go
Normal file
@ -0,0 +1 @@
|
|||||||
|
package revocation
|
@ -1 +0,0 @@
|
|||||||
package wallet
|
|
Loading…
Reference in New Issue
Block a user