Breaking changes
- Updates the SEP-10 helper function parameters to support SEP-10 v3.1.
- The following functions added the
webAuthDomain
parameter:BuildChallengeTx()
ReadChallengeTx()
VerifyChallengeTxThreshold()
VerifyChallengeTxSigners()
- The webAuthDomain parameter is verified in the
Read*
andVerify*
functions if it is contained in the challenge transaction, and is ignored if the challenge transaction was generated by an older implementation that does not support the webAuthDomain. - The webAuthDomain parameter is included in challenge transactions generated in the
Build*
function, and the resulting challenge transaction is compatible with SEP-10 v2.1 or greater.
- The following functions added the
- Use strings to represent source accounts in Operation structs (#3393) see example below:
bumpSequenceOp := txnbuild.BumpSequence{BumpTo: 100, SourceAccount: "GB56OJGSA6VHEUFZDX6AL2YDVG2TS5JDZYQJHDYHBDH7PCD5NIQKLSDO"}
- Remove
TxEnvelope()
functions fromTransaction
andFeeBumpTransaction
to simplify the API.ToXDR()
should be used instead ofTxEnvelope()
(#3377)