Skip to content

Commit

Permalink
Fixed erroneous txscript.KeyClosure documentation.
Browse files Browse the repository at this point in the history
  • Loading branch information
jongillham committed Jul 19, 2015
1 parent e13b4fe commit 8fcea82
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions txscript/sign.go
Original file line number Diff line number Diff line change
Expand Up @@ -346,10 +346,10 @@ type KeyDB interface {
GetKey(btcutil.Address) (*btcec.PrivateKey, bool, error)
}

// KeyClosure implements ScriptDB with a closure
// KeyClosure implements KeyDB with a closure.
type KeyClosure func(btcutil.Address) (*btcec.PrivateKey, bool, error)

// GetKey implements KeyDB by returning the result of calling the closure
// GetKey implements KeyDB by returning the result of calling the closure.
func (kc KeyClosure) GetKey(address btcutil.Address) (*btcec.PrivateKey,
bool, error) {
return kc(address)
Expand All @@ -361,10 +361,10 @@ type ScriptDB interface {
GetScript(btcutil.Address) ([]byte, error)
}

// ScriptClosure implements ScriptDB with a closure
// ScriptClosure implements ScriptDB with a closure.
type ScriptClosure func(btcutil.Address) ([]byte, error)

// GetScript implements ScriptDB by returning the result of calling the closure
// GetScript implements ScriptDB by returning the result of calling the closure.
func (sc ScriptClosure) GetScript(address btcutil.Address) ([]byte, error) {
return sc(address)
}
Expand Down

0 comments on commit 8fcea82

Please sign in to comment.