'use strict';

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');
var types_generic_typedNull = 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');
var types_generic_typedNumber = require('../../generic/typed-number.cjs');
require('../../generic/typed-set.cjs');
require('../../generic/typed-map.cjs');
var types_generic_typedStruct = require('../../generic/typed-struct.cjs');
require('uuid');
require('js-sha256');
var types_did_onchain_constants = require('./constants.cjs');
var types_did_onchain_typedDid_index = require('./typed-did/index.cjs');
var types_did_onchain_controllers = require('./controllers.cjs');
var types_did_onchain_verificationRelationship = require('./verification-relationship.cjs');
var types_did_onchain_didKey = require('./did-key.cjs');
var types_did_onchain_verificationMethodSignature = require('./verification-method-signature.cjs');
var types_did_onchain_typedDid_dockDidValue = require('./typed-did/dock-did-value.cjs');
var types_did_onchain_typedDid_cheqdDid = require('./typed-did/cheqd-did.cjs');
var types_did_onchain_typedDid_didMethodKey_didMethodKeyPublicKey = require('./typed-did/did-method-key/did-method-key-public-key.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('blake2b');
require('../../generic/with-from-json-bytes.cjs');
require('../../generic/create-placeholder.cjs');
require('./typed-did/did-method-key/did-method-key-signature.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('../../signatures/signature-value.cjs');
require('../../signatures/signature-ed25519-value.cjs');
require('../../signatures/signature-secp256k1-value.cjs');
require('../../signatures/signature.cjs');
require('../../signatures/signature-sr25519-value.cjs');
require('../../generic/typed-uuid.cjs');
require('../../generic/with-qualifier.cjs');
require('../../generic/utils.cjs');
require('../../generic/typed-bytes-array.cjs');
require('./typed-did/signature.cjs');
require('../../../utils/encoding/base-58-btc.cjs');
require('../../offchain-signatures/params/index.cjs');
require('../../offchain-signatures/params/value.cjs');
require('../../generic/option.cjs');
require('../../offchain-signatures/curve-type.cjs');
require('../../offchain-signatures/params/id.cjs');
require('../../generic/with-from-dock-id.cjs');
require('../../offchain-signatures/public-keys/index.cjs');
require('../../generic/with-prop.cjs');
require('../../generic/with-props.cjs');
require('../../../vc/crypto/Bls12381BBDT16KeyPairDock2024.cjs');
require('@docknetwork/crypto-wasm-ts');
require('../../../vc/crypto/common/DockCryptoKeyPair.cjs');
require('../../../vc/crypto/Bls12381BBDT16MACDock2024.cjs');
require('@docknetwork/crypto-wasm-ts/lib/index.js');
require('../../../vc/crypto/common/DockCryptoSignature.cjs');
require('jsonld-signatures');
require('json-stringify-deterministic');
require('semver/preload.js');
require('../../../vc/crypto/common/CustomLinkedDataSignature.cjs');
require('base64url');
require('jsonld');
require('../document/verification-method-ref.cjs');
require('../../../vc/jws.cjs');
require('../../../vc/crypto/Bls12381BBDT16MACProofDock2024.cjs');
require('../../../vc/crypto/common/DockCryptoSignatureProof.cjs');
require('../../../vc/crypto/Bls12381BBSKeyPairDock2023.cjs');
require('../../../vc/crypto/Bls12381BBSSignatureDock2022.cjs');
require('../../../vc/crypto/Bls12381G2KeyPairDock2022.cjs');
require('../../../vc/crypto/Bls12381BBSSignatureDock2023.cjs');
require('../../../vc/crypto/Bls12381BBSSignatureProofDock2022.cjs');
require('../../../vc/crypto/Bls12381BBSSignatureProofDock2023.cjs');
require('../../../vc/crypto/Bls12381BDDT16KeyPairDock2024.cjs');
require('../../../vc/crypto/Bls12381BDDT16MACDock2024.cjs');
require('../../../vc/crypto/Bls12381BDDT16MACProofDock2024.cjs');
require('../../../vc/crypto/Bls12381PSKeyPairDock2023.cjs');
require('../../../vc/crypto/Bls12381PSSignatureDock2023.cjs');
require('../../../vc/crypto/Bls12381PSSignatureProofDock2023.cjs');
require('@juanelas/base64');
require('../../../keypairs/keypair-secp256k1.cjs');
require('elliptic');
require('../../../keypairs/dock-keypair.cjs');
require('@stablelib/ed25519');
require('@transmute/json-web-signature');
require('../../offchain-signatures/public-keys/value.cjs');
require('../../offchain-signatures/public-keys/ref.cjs');
require('../../offchain-signatures/public-keys/id.cjs');
require('../../../keypairs/did-keypair.cjs');
require('../document/verification-method-ref-or-ident-ref.cjs');
require('../document/ident-ref.cjs');

class DidMethodKeyDetails extends types_generic_typedStruct {
  static Classes = {
    nonce: types_generic_typedNumber,
    data: types_generic_typedNull,
  };

  constructor(nonce) {
    super(nonce, null);
  }
}

class OnchainDidDetailsValue extends types_generic_typedStruct {
  static Classes = {
    lastKeyId: types_generic_typedNumber,
    activeControllerKeys: types_generic_typedNumber,
    activeControllers: types_generic_typedNumber,
  };
}

class StoredOnchainDidDetailsValue extends types_generic_typedStruct {
  static Classes = {
    nonce: types_generic_typedNumber,
    data: OnchainDidDetailsValue,
  };

  constructor(nonce, data) {
    super(nonce, data);
  }

  get lastKeyId() {
    return this.data.lastKeyId.value;
  }

  get activeControllerKeys() {
    return this.data.activeControllerKeys.value;
  }

  get activeControllers() {
    return this.data.activeControllers.value;
  }
}

exports.BBS23PublicKeyPrefix = types_did_onchain_constants.BBS23PublicKeyPrefix;
exports.BBSPlusPublicKeyPrefix = types_did_onchain_constants.BBSPlusPublicKeyPrefix;
exports.CheqdDIDByteSize = types_did_onchain_constants.CheqdDIDByteSize;
exports.CheqdDIDMainnetQualifier = types_did_onchain_constants.CheqdDIDMainnetQualifier;
exports.CheqdDIDMethod = types_did_onchain_constants.CheqdDIDMethod;
exports.CheqdDIDQualifier = types_did_onchain_constants.CheqdDIDQualifier;
exports.CheqdDIDTestnetQualifier = types_did_onchain_constants.CheqdDIDTestnetQualifier;
exports.DidMethodKeyBBS23ByteSize = types_did_onchain_constants.DidMethodKeyBBS23ByteSize;
exports.DidMethodKeyBBS23Prefix = types_did_onchain_constants.DidMethodKeyBBS23Prefix;
exports.DidMethodKeyBBSPlusByteSize = types_did_onchain_constants.DidMethodKeyBBSPlusByteSize;
exports.DidMethodKeyBBSPlusPrefix = types_did_onchain_constants.DidMethodKeyBBSPlusPrefix;
exports.DidMethodKeyBytePrefixBBS23 = types_did_onchain_constants.DidMethodKeyBytePrefixBBS23;
exports.DidMethodKeyBytePrefixBBSPlus = types_did_onchain_constants.DidMethodKeyBytePrefixBBSPlus;
exports.DidMethodKeyBytePrefixEd25519 = types_did_onchain_constants.DidMethodKeyBytePrefixEd25519;
exports.DidMethodKeyBytePrefixSecp256k1 = types_did_onchain_constants.DidMethodKeyBytePrefixSecp256k1;
exports.DidMethodKeyEd25519ByteSize = types_did_onchain_constants.DidMethodKeyEd25519ByteSize;
exports.DidMethodKeyEd25519Prefix = types_did_onchain_constants.DidMethodKeyEd25519Prefix;
exports.DidMethodKeyQualifier = types_did_onchain_constants.DidMethodKeyQualifier;
exports.DidMethodKeySecp256k1ByteSize = types_did_onchain_constants.DidMethodKeySecp256k1ByteSize;
exports.DidMethodKeySecp256k1Prefix = types_did_onchain_constants.DidMethodKeySecp256k1Prefix;
exports.DockDIDByteSize = types_did_onchain_constants.DockDIDByteSize;
exports.DockDIDMethod = types_did_onchain_constants.DockDIDMethod;
exports.DockDIDQualifier = types_did_onchain_constants.DockDIDQualifier;
exports.Ed25519PublicKeyPrefix = types_did_onchain_constants.Ed25519PublicKeyPrefix;
exports.Secp256k1PublicKeyPrefix = types_did_onchain_constants.Secp256k1PublicKeyPrefix;
exports.CheqdDidRef = types_did_onchain_typedDid_index.CheqdDidRef;
exports.CheqdNamespaceDid = types_did_onchain_typedDid_index.CheqdNamespaceDid;
exports.DidMethodKey = types_did_onchain_typedDid_index.DidMethodKey;
exports.DidNamespaceKey = types_did_onchain_typedDid_index.DidNamespaceKey;
exports.DidRef = types_did_onchain_typedDid_index.DidRef;
exports.DockDid = types_did_onchain_typedDid_index.DockDid;
exports.DockDidOrDidMethodKey = types_did_onchain_typedDid_index.DockDidOrDidMethodKey;
exports.DockNamespaceDid = types_did_onchain_typedDid_index.DockNamespaceDid;
exports.NamespaceDid = types_did_onchain_typedDid_index.NamespaceDid;
exports.possibleDids = types_did_onchain_typedDid_index.possibleDids;
exports.Controllers = types_did_onchain_controllers.Controllers;
exports.VerificationRelationship = types_did_onchain_verificationRelationship.VerificationRelationship;
exports.DidKey = types_did_onchain_didKey.DidKey;
exports.DidKeyBBSPlusPublicKey = types_did_onchain_didKey.DidKeyBBSPlusPublicKey;
exports.DidKeyBBSPublicKey = types_did_onchain_didKey.DidKeyBBSPublicKey;
exports.DidKeyEd25519PublicKey = types_did_onchain_didKey.DidKeyEd25519PublicKey;
exports.DidKeyPSPublicKey = types_did_onchain_didKey.DidKeyPSPublicKey;
exports.DidKeySecp256k1PublicKey = types_did_onchain_didKey.DidKeySecp256k1PublicKey;
exports.DidKeySr25519PublicKey = types_did_onchain_didKey.DidKeySr25519PublicKey;
exports.DidKeyValue = types_did_onchain_didKey.DidKeyValue;
exports.DidKeyX25519PublicKey = types_did_onchain_didKey.DidKeyX25519PublicKey;
exports.DidKeys = types_did_onchain_didKey.DidKeys;
exports.DidKeysList = types_did_onchain_didKey.DidKeysList;
exports.CheqdMainnetVerificationMethodSignature = types_did_onchain_verificationMethodSignature.CheqdMainnetVerificationMethodSignature;
exports.CheqdTestnetVerificationMethodSignature = types_did_onchain_verificationMethodSignature.CheqdTestnetVerificationMethodSignature;
exports.VerificationMethodSignature = types_did_onchain_verificationMethodSignature.VerificationMethodSignature;
exports.DockDidValue = types_did_onchain_typedDid_dockDidValue.default;
exports.CheqdDLRRef = types_did_onchain_typedDid_cheqdDid.CheqdDLRRef;
exports.CheqdDid = types_did_onchain_typedDid_cheqdDid.CheqdDid;
exports.CheqdDidValue = types_did_onchain_typedDid_cheqdDid.CheqdDidValue;
exports.CheqdMainnetDid = types_did_onchain_typedDid_cheqdDid.CheqdMainnetDid;
exports.CheqdMainnetDidValue = types_did_onchain_typedDid_cheqdDid.CheqdMainnetDidValue;
exports.CheqdTestnetDid = types_did_onchain_typedDid_cheqdDid.CheqdTestnetDid;
exports.CheqdTestnetDidValue = types_did_onchain_typedDid_cheqdDid.CheqdTestnetDidValue;
exports.DidMethodKeyPublicKey = types_did_onchain_typedDid_didMethodKey_didMethodKeyPublicKey.DidMethodKeyPublicKey;
exports.DidMethodKeyDetails = DidMethodKeyDetails;
exports.OnchainDidDetailsValue = OnchainDidDetailsValue;
exports.StoredOnchainDidDetailsValue = StoredOnchainDidDetailsValue;
//# sourceMappingURL=index.cjs.map
