@@ -36,15 +36,11 @@ type Backend interface {
3636
3737 // Sign signs a channel's State with the given Account.
3838 // Returns the signature or an error.
39- // The framework guarantees to not pass nil Account, *Params or *State, that
40- // the IDs of them match and that Params.ID = ChannelID(Params).
41- Sign (wallet.Account , * Params , * State ) (wallet.Sig , error )
39+ Sign (wallet.Account , * State ) (wallet.Sig , error )
4240
4341 // Verify verifies that the provided signature on the state belongs to the
4442 // provided address.
45- // The framework guarantees to not pass nil Address, *Params or *State, that
46- // the IDs of them match and that Params.ID = ChannelID(Params).
47- Verify (addr wallet.Address , params * Params , state * State , sig wallet.Sig ) (bool , error )
43+ Verify (addr wallet.Address , state * State , sig wallet.Sig ) (bool , error )
4844
4945 // DecodeAsset decodes an asset from a stream.
5046 DecodeAsset (io.Reader ) (Asset , error )
@@ -65,13 +61,13 @@ func CalcID(p *Params) ID {
6561}
6662
6763// Sign creates a signature from the account a on state s.
68- func Sign (a wallet.Account , p * Params , s * State ) (wallet.Sig , error ) {
69- return backend .Sign (a , p , s )
64+ func Sign (a wallet.Account , s * State ) (wallet.Sig , error ) {
65+ return backend .Sign (a , s )
7066}
7167
7268// Verify verifies that a signature was a valid signature from addr on a state.
73- func Verify (addr wallet.Address , params * Params , state * State , sig wallet.Sig ) (bool , error ) {
74- return backend .Verify (addr , params , state , sig )
69+ func Verify (addr wallet.Address , state * State , sig wallet.Sig ) (bool , error ) {
70+ return backend .Verify (addr , state , sig )
7571}
7672
7773// DecodeAsset decodes an Asset from an io.Reader.
0 commit comments