js-stellar-base icon indicating copy to clipboard operation
js-stellar-base copied to clipboard

Add support for signed payloads to the `setOptions` operation.

Open Shaptic opened this issue 3 years ago • 0 comments

While many parts of the SDK have been updated to enable the new signer type from CAP-40, the SetOptions operation has not.

As part of this, new helpers exist:

  function composeSignedPayload(address: string, payload: Buffer): string;
  function decomposeSignedPayload(address: string): { signer: string; payload: Buffer };

which should make it easy to create a P-address from a G-address and a payload and vice-versa.

Shaptic avatar Jun 08 '22 19:06 Shaptic