v8.0.0
This is a promotion without changes from v8.0.0-beta.0. Its CHANGELOG is replicated below.
This release adds support for Protocol 19.
It includes CAP-21 (new transaction preconditions) and CAP-40 (signed payload signers).
This is considered a beta release until the XDR for the Stellar protocol stabilizes and is officially released.
Breaking
- As of this release, the minimum supported version of NodeJS is 14.x.
- Two XDR types have been renamed:
xdr.OperationId
is nowxdr.HashIdPreimage
xdr.OperationIdId
is nowxdr.HashIdPreimageOperationId
Add
-
Support for converting signed payloads (CAP-40) to and from their StrKey (
P...
) representation (#511):Keypair.signPayloadDecorated(data)
StrKey.encodeSignedPayload(buf)
StrKey.decodeSignedPayload(str)
StrKey.isValidSignedPayload(str)
-
Support for creating transactions with the new preconditions (CAP-21) via
TransactionBuilder
(#513). -
A way to convert between addresses (like
G...
andP...
, i.e. theStrKey
class) and their respective signer keys (i.e.xdr.SignerKey
s), particularly for use in the new transaction preconditions (#520):SignerKey.decodeAddress(address)
SignerKey.encodeSignerKey(address)
TransactionBuilder.setTimebounds(min, max)
TransactionBuilder.setLedgerbounds(min, max)
TransactionBuilder.setMinAccountSequence(seq)
TransactionBuilder.setMinAccountSequenceAge(age)
TransactionBuilder.setMinAccountSequenceLedgerGap(gap)
TransactionBuilder.setExtraSigners([signers])