Skip to content

Make (SiaPublicKey).String a value receiver

Luke Champine requested to merge spk-str into master

Before this change, it was illegal to write types.Ed25519Key(pk).String(). Instead you had to write it on two lines:

spk := types.Ed25519Key(pk)
spk.String()

In general, String() methods should have value receivers. Likewise with Marshal methods.

Merge request reports