@monolythium/core-sdk 0.3.12 → 0.3.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +24 -0
- package/dist/crypto/index.d.cts +2 -2
- package/dist/crypto/index.d.ts +2 -2
- package/dist/index.cjs +1169 -229
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +64 -3
- package/dist/index.d.ts +64 -3
- package/dist/index.js +1127 -230
- package/dist/index.js.map +1 -1
- package/dist/{submission-CA8L21An.d.cts → submission-vhPqAwkD.d.cts} +488 -1
- package/dist/{submission-CA8L21An.d.ts → submission-vhPqAwkD.d.ts} +488 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -209,6 +209,30 @@ const lookup = encodeLookupPubkeyCalldata(account);
|
|
|
209
209
|
const decoded = decodeLookupPubkeyReturn(returnData);
|
|
210
210
|
```
|
|
211
211
|
|
|
212
|
+
### Node-registry lifecycle helpers
|
|
213
|
+
|
|
214
|
+
Operator tooling can build canonical node-registry calldata for Monarch
|
|
215
|
+
recovery, roster pending changes, cancellation, and DKG re-share attestation.
|
|
216
|
+
|
|
217
|
+
```ts
|
|
218
|
+
import {
|
|
219
|
+
encodeRecoverOperatorNodeCalldata,
|
|
220
|
+
encodeSubmitPendingChangeCalldata,
|
|
221
|
+
encodeCancelPendingChangeCalldata,
|
|
222
|
+
encodeAttestDkgReshareCalldata,
|
|
223
|
+
} from "@monolythium/core-sdk";
|
|
224
|
+
|
|
225
|
+
const recovery = encodeRecoverOperatorNodeCalldata(peerId);
|
|
226
|
+
const pending = encodeSubmitPendingChangeCalldata({
|
|
227
|
+
kind: "rotate",
|
|
228
|
+
targetPubkey,
|
|
229
|
+
effectiveEpoch: 42n,
|
|
230
|
+
intentId: 7n,
|
|
231
|
+
});
|
|
232
|
+
const cancel = encodeCancelPendingChangeCalldata({ epoch: 42n, targetPubkey });
|
|
233
|
+
const dkg = encodeAttestDkgReshareCalldata({ intentId: 7n, blsPublicKeys, thresholdSig });
|
|
234
|
+
```
|
|
235
|
+
|
|
212
236
|
### Bridge route readiness
|
|
213
237
|
|
|
214
238
|
Bridge helpers assess explicit route disclosures and fail closed. The SDK can
|
package/dist/crypto/index.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { I as MlDsa65Backend } from '../submission-
|
|
2
|
-
export {
|
|
1
|
+
import { I as MlDsa65Backend } from '../submission-vhPqAwkD.cjs';
|
|
2
|
+
export { iw as ADDRESS_DERIVATION_DOMAIN, ix as DKG_AEAD_TAG_LEN, iy as DKG_NONCE_LEN, iz as DecryptHint, iA as ENUM_VARIANT_INDEX_ML_DSA_65, iB as EncryptedEnvelope, iC as EncryptedSubmission, E as EncryptionKey, iD as ML_DSA_65_PUBLIC_KEY_LEN, iE as ML_DSA_65_SEED_LEN, iF as ML_DSA_65_SIGNATURE_LEN, iG as ML_DSA_65_SIGNING_KEY_LEN, iH as ML_KEM_768_CIPHERTEXT_LEN, iI as ML_KEM_768_ENCAPSULATION_KEY_LEN, iJ as ML_KEM_768_SHARED_SECRET_LEN, F as MempoolClass, D as NativeEvmTxFields, iK as NativeTxExtension, iL as NativeTxExtensionDescriptor, iM as NativeTxExtensionLike, iN as NonceAad, iO as PlaintextSubmission, iP as STANDARD_ALGO_NUMBER_ML_DSA_65, iQ as bincodeDecryptHint, iR as bincodeEncryptedEnvelope, iS as bincodeNonceAad, iT as bincodeSignedTransaction, iU as buildEncryptedEnvelope, iV as buildEncryptedSubmission, iW as buildPlaintextSubmission, iX as encodeMlDsa65Opaque, iY as encodeTransactionForHash, iZ as encryptInnerTx, i_ as fetchEncryptionKey, i$ as mlDsa65AddressBytes, j0 as mlDsa65AddressFromPublicKey, j1 as outerSigDigest, j2 as submitEncryptedEnvelope, j3 as submitPlaintextTransaction, j4 as submitTransactionWithPrivacy } from '../submission-vhPqAwkD.cjs';
|
|
3
3
|
|
|
4
4
|
declare class BincodeWriter {
|
|
5
5
|
#private;
|
package/dist/crypto/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { I as MlDsa65Backend } from '../submission-
|
|
2
|
-
export {
|
|
1
|
+
import { I as MlDsa65Backend } from '../submission-vhPqAwkD.js';
|
|
2
|
+
export { iw as ADDRESS_DERIVATION_DOMAIN, ix as DKG_AEAD_TAG_LEN, iy as DKG_NONCE_LEN, iz as DecryptHint, iA as ENUM_VARIANT_INDEX_ML_DSA_65, iB as EncryptedEnvelope, iC as EncryptedSubmission, E as EncryptionKey, iD as ML_DSA_65_PUBLIC_KEY_LEN, iE as ML_DSA_65_SEED_LEN, iF as ML_DSA_65_SIGNATURE_LEN, iG as ML_DSA_65_SIGNING_KEY_LEN, iH as ML_KEM_768_CIPHERTEXT_LEN, iI as ML_KEM_768_ENCAPSULATION_KEY_LEN, iJ as ML_KEM_768_SHARED_SECRET_LEN, F as MempoolClass, D as NativeEvmTxFields, iK as NativeTxExtension, iL as NativeTxExtensionDescriptor, iM as NativeTxExtensionLike, iN as NonceAad, iO as PlaintextSubmission, iP as STANDARD_ALGO_NUMBER_ML_DSA_65, iQ as bincodeDecryptHint, iR as bincodeEncryptedEnvelope, iS as bincodeNonceAad, iT as bincodeSignedTransaction, iU as buildEncryptedEnvelope, iV as buildEncryptedSubmission, iW as buildPlaintextSubmission, iX as encodeMlDsa65Opaque, iY as encodeTransactionForHash, iZ as encryptInnerTx, i_ as fetchEncryptionKey, i$ as mlDsa65AddressBytes, j0 as mlDsa65AddressFromPublicKey, j1 as outerSigDigest, j2 as submitEncryptedEnvelope, j3 as submitPlaintextTransaction, j4 as submitTransactionWithPrivacy } from '../submission-vhPqAwkD.js';
|
|
3
3
|
|
|
4
4
|
declare class BincodeWriter {
|
|
5
5
|
#private;
|