'use strict';

var types_generic_typedEnum = require('../generic/typed-enum.cjs');
require('../generic/typed-bytes.cjs');
require('../generic/typed-string.cjs');
require('../generic/typed-array.cjs');
require('../generic/typed-tuple.cjs');
require('../generic/typed-null.cjs');
require('../../utils/types/array.cjs');
require('crypto');
require('bs58');
require('multiformats/bases/base58');
require('varint');
require('../../utils/encoding/ss-58.cjs');
require('../generic/typed-number.cjs');
require('../generic/typed-set.cjs');
require('../generic/typed-map.cjs');
require('../generic/typed-struct.cjs');
require('uuid');
require('js-sha256');
var types_signatures_signatureEd25519Value = require('./signature-ed25519-value.cjs');
var types_signatures_signatureSecp256k1Value = require('./signature-secp256k1-value.cjs');
var types_signatures_signatureSr25519Value = require('./signature-sr25519-value.cjs');
require('../../utils/types/iterable.cjs');
require('../../utils/types/object.cjs');
require('../../utils/interfaces.cjs');
require('../../utils/assert.cjs');
require('../../utils/error.cjs');
require('../../utils/inheritance.cjs');
require('../../utils/types/set.cjs');
require('../generic/with-base.cjs');
require('../../utils/types/bytes.cjs');
require('../../utils/types/string.cjs');
require('../generic/with-catch-null.cjs');
require('../generic/with-eq.cjs');
require('../generic/any-of.cjs');
require('../generic/with-from.cjs');
require('../generic/with-from-json-bytes.cjs');
require('blake2b');
require('../generic/create-placeholder.cjs');
require('../public-keys/public-key.cjs');
require('../public-keys/public-key-x25519-value.cjs');
require('../generic/sized.cjs');
require('../../utils/types/number.cjs');
require('../public-keys/public-key-ed25519-value.cjs');
require('../../vc/crypto/constants.cjs');
require('../public-keys/public-key-secp256k1-value.cjs');
require('../public-keys/public-key-sr25519-value.cjs');
require('./signature-value.cjs');

/**
 * Class representing either Ed25519 or Secp256k1 or Sr25519 Signature
 * @class
 * @extends {TypedEnum}
 */
class Signature extends types_generic_typedEnum {
  static get PublicKey() {
    return this.Class.PublicKey;
  }

  get bytes() {
    return this.value.bytes;
  }
}
/**
 * Class representing Ed25519 Signature
 * @class
 * @extends {Signature}
 */
class SignatureEd25519 extends Signature {
  static Class = types_signatures_signatureEd25519Value;
}
/**
 * Class representing Secp256k1 Signature
 * @class
 * @extends {Signature}
 */
class SignatureSecp256k1 extends Signature {
  static Class = types_signatures_signatureSecp256k1Value;
}
/**
 * Class representing Sr25519 Signature
 * @class
 * @extends {SignatureEd25519OrSignatureSecp256k1OrSignatureSr25519}
 */
class SignatureSr25519 extends Signature {
  static Class = types_signatures_signatureSr25519Value;
}

Signature.bindVariants(SignatureEd25519, SignatureSecp256k1, SignatureSr25519);

exports.Signature = Signature;
exports.SignatureEd25519 = SignatureEd25519;
exports.SignatureSecp256k1 = SignatureSecp256k1;
exports.SignatureSr25519 = SignatureSr25519;
//# sourceMappingURL=signature.cjs.map
