Fixed message signing. Adjusted parameters of signMessage(). Theoretically, this is a breaking change (adjustment of the public API) - practically, it's not, since it wasn't working previously.
Renamed error classes: theoretically, this is a breaking change. Practically, it's a non-breaking change - errors were meant to be internal.
Removed interface IMessage. Theoretically, a breaking change. Practically, not, since the interface couldn't have been used with success to sign a message. Added a new one (to be consistent with other providers): ISignableMessage.
Signing a message:
// Using sdk-core's SignableMessage
provider.signMessage(new SignableMessage({ message: Buffer.from("hello") }))
// Using a simple buffer
provider.signMessage({ message: Buffer.from("hello") })
Retrieving the message signature (as a plain string): provider.getMessageSignatureFromWalletUrl().
signMessage()
. Theoretically, this is a breaking change (adjustment of the public API) - practically, it's not, since it wasn't working previously.IMessage
. Theoretically, a breaking change. Practically, not, since the interface couldn't have been used with success to sign a message. Added a new one (to be consistent with other providers):ISignableMessage
.Signing a message:
Retrieving the message signature (as a plain string):
provider.getMessageSignatureFromWalletUrl()
.