URIScheme class
Implements utility methods for SEP-007 - URI Scheme to facilitate delegated signing https://github.com/stellar/stellar-protocol/blob/master/ecosystem/sep-0007.md
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- httpClient ↔ Client
-
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
checkUIRSchemeIsValid(
String url) → Future< bool> - Checks if the URL is valid; signature and domain must be present and correct for the signer's keypair. returns true if valid, otherwise thrown the corresponding URISchemeError.
-
generatePayOperationURI(
String destinationAccountId, {String? amount, String? assetCode, String? assetIssuer, String? memo, String? memoType, String? callback, String? message, String? networkPassphrase, String? originDomain, String? signature}) → String - This function is used to generate a URIScheme compliant URL to serve as a request to pay a specific address with a specific asset, regardless of the source asset used by the payer.
-
generateSignTransactionURI(
String transactionEnvelopeXdrBase64, {String? replace, String? callback, String? publicKey, String? chain, String? message, String? networkPassphrase, String? originDomain, String? signature}) → String - This function is used to generate a URIScheme compliant URL to serve as a request to sign a transaction.
-
getParameterValue(
String name, String url) → String? - Returns the value of the given url parameter from the specified url if found.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
signAndSubmitTransaction(
String url, KeyPair signerKeyPair, {Network? network}) → Future< SubmitUriSchemeTransactionResponse> - Signs the given transaction and submits it to the callback url if available, otherwise it submits it to the stellar network.
-
signURI(
String url, KeyPair signerKeypair) → String - Signs the URIScheme compliant URL with the signer's key pair.
-
toString(
) → String -
A string representation of this object.
inherited
-
verify(
String url, String urlEncodedBase64Signature, KeyPair signerPublicKey) → bool - Verifies if the url is valid for the given signature to check if it's an authentic url.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Properties
- messageMaxLength ↔ int
-
getter/setter pair
Constants
- amountParameterName → const String
- assetCodeParameterName → const String
- assetIssuerParameterName → const String
- callbackParameterName → const String
- chainParameterName → const String
- destinationParameterName → const String
- memoCodeParameterName → const String
- memoTypeIssuerParameterName → const String
- messageParameterName → const String
- networkPassphraseParameterName → const String
- originDomainParameterName → const String
- payOperation → const String
- publicKeyParameterName → const String
- replaceParameterName → const String
- signatureParameterName → const String
- signOperation → const String
- uriSchemeName → const String
- uriSchemePrefix → const String
- xdrParameterName → const String