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

/**
 * Class representing either Ed25519 or Secp256k1 or Sr25519 Signature
 * @class
 * @extends {TypedEnum}
 */
class Signature extends 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 = SignatureEd25519Value;
}
/**
 * Class representing Secp256k1 Signature
 * @class
 * @extends {Signature}
 */
class SignatureSecp256k1 extends Signature {
  static Class = SignatureSecp256k1Value;
}
/**
 * Class representing Sr25519 Signature
 * @class
 * @extends {SignatureEd25519OrSignatureSecp256k1OrSignatureSr25519}
 */
class SignatureSr25519 extends Signature {
  static Class = SignatureSr25519Value;
}

Signature.bindVariants(SignatureEd25519, SignatureSecp256k1, SignatureSr25519);

export { Signature, SignatureEd25519, SignatureSecp256k1, SignatureSr25519 };
//# sourceMappingURL=signature.js.map
