eosjs-signature-provider-interface
Version:
An abstract class that implements the EOSJS SignatureProvider interface, and provides helper methods for interacting with an authenticator using the EOSIO Authentication Transport Protocol Specification.
37 lines • 2 kB
JavaScript
;
/**
* EOSIO Interfaces
* TODO: These should be moved somewhere else. Most are duplicated in other repos
*/
Object.defineProperty(exports, "__esModule", { value: true });
/**
* EOSIO Authentication Transport Protocol Specifications interfaces
*/
var EnvelopeDataType;
(function (EnvelopeDataType) {
EnvelopeDataType["SELECTIVE_DISCLOSURE"] = "selectiveDisclosure";
EnvelopeDataType["TRANSACTION_SIGNATURE"] = "transactionSignature";
})(EnvelopeDataType = exports.EnvelopeDataType || (exports.EnvelopeDataType = {}));
var SelectiveDisclosureType;
(function (SelectiveDisclosureType) {
SelectiveDisclosureType["AUTHORIZERS"] = "authorizers";
// tslint:disable-next-line
// TODO: Documentation says "availableKeys" instead of "authorizers"... but "authorizers" works with the EOSIO iOS app?
})(SelectiveDisclosureType = exports.SelectiveDisclosureType || (exports.SelectiveDisclosureType = {}));
var ErrorCodes;
(function (ErrorCodes) {
ErrorCodes[ErrorCodes["biometricsDisabled"] = 0] = "biometricsDisabled";
ErrorCodes[ErrorCodes["keychainError"] = 1] = "keychainError";
ErrorCodes[ErrorCodes["manifestError"] = 2] = "manifestError";
ErrorCodes[ErrorCodes["metadataError"] = 3] = "metadataError";
ErrorCodes[ErrorCodes["networkError"] = 4] = "networkError";
ErrorCodes[ErrorCodes["parsingError"] = 5] = "parsingError";
ErrorCodes[ErrorCodes["resourceIntegrityError"] = 6] = "resourceIntegrityError";
ErrorCodes[ErrorCodes["resourceRetrievalError"] = 7] = "resourceRetrievalError";
ErrorCodes[ErrorCodes["signingError"] = 8] = "signingError";
ErrorCodes[ErrorCodes["transactionError"] = 9] = "transactionError";
ErrorCodes[ErrorCodes["vaultError"] = 10] = "vaultError";
ErrorCodes[ErrorCodes["whitelistingError"] = 11] = "whitelistingError";
ErrorCodes[ErrorCodes["unexpectedError"] = 12] = "unexpectedError";
})(ErrorCodes = exports.ErrorCodes || (exports.ErrorCodes = {}));
//# sourceMappingURL=interfaces.js.map