UNPKG

rosetta-sdk-typescript

Version:

Typescript SDK to create and interact with Rosetta API implementations.

42 lines (41 loc) 2.13 kB
"use strict"; /* tslint:disable */ /* eslint-disable */ /** * Rosetta * Build Once. Integrate Your Blockchain Everywhere. * * The version of the OpenAPI document: 1.4.10 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ Object.defineProperty(exports, "__esModule", { value: true }); exports.SignatureTypeToJSON = exports.SignatureTypeFromJSONTyped = exports.SignatureTypeFromJSON = exports.SignatureType = void 0; /** * SignatureType is the type of a cryptographic signature. * ecdsa: `r (32-bytes) || s (32-bytes)` - `64 bytes` * ecdsa_recovery: `r (32-bytes) || s (32-bytes) || v (1-byte)` - `65 bytes` * ed25519: `R (32-byte) || s (32-bytes)` - `64 bytes` * schnorr_1: `r (32-bytes) || s (32-bytes)` - `64 bytes` (schnorr signature implemented by Zilliqa where both `r` and `s` are scalars encoded as `32-bytes` values, most significant byte first.) * schnorr_poseidon: `r (32-bytes) || s (32-bytes)` where s = Hash(1st pk || 2nd pk || r) - `64 bytes` (schnorr signature w/ Poseidon hash function implemented by O(1) Labs where both `r` and `s` are scalars encoded as `32-bytes` values, least significant byte first. https://github.com/CodaProtocol/signer-reference/blob/master/schnorr.ml ) * @export * @enum {string} */ var SignatureType; (function (SignatureType) { SignatureType["ecdsa"] = "ecdsa"; SignatureType["ecdsa_recovery"] = "ecdsa_recovery"; SignatureType["ed25519"] = "ed25519"; SignatureType["schnorr_1"] = "schnorr_1"; SignatureType["schnorr_poseidon"] = "schnorr_poseidon"; })(SignatureType = exports.SignatureType || (exports.SignatureType = {})); function SignatureTypeFromJSON(json) { return SignatureTypeFromJSONTyped(json, false); } exports.SignatureTypeFromJSON = SignatureTypeFromJSON; function SignatureTypeFromJSONTyped(json, ignoreDiscriminator) { return json; } exports.SignatureTypeFromJSONTyped = SignatureTypeFromJSONTyped; function SignatureTypeToJSON(value) { return value; } exports.SignatureTypeToJSON = SignatureTypeToJSON;