goat-systems / go-tezos

Go Tezos Is a Go library that exposes and builds upon the Tezos RPC.
MIT License
71 stars 45 forks source link

SignBytes assumes transaction #185

Open utdrmac opened 3 years ago

utdrmac commented 3 years ago

https://github.com/goat-systems/go-tezos/blob/800cc714fad7313e92a5068407c23e0e397f5323/keys/key.go#L167

SignBytes checks that the watermark is 0x03 in all cases. This should be generic'd so that bakes/endorses/reveals/nonces/etc can all be signed since they have different watermarks.