@inco/js 0.3.1 → 0.3.2-alpha.1
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/dist/cjs/advancedacl/session-key.d.ts +29 -0
- package/dist/cjs/advancedacl/session-key.js +167 -27
- package/dist/cjs/attestedcompute/attested-compute.d.ts +16 -16
- package/dist/cjs/attestedcompute/attested-compute.js +66 -73
- package/dist/cjs/attestedcompute/types.d.ts +3 -2
- package/dist/cjs/attesteddecrypt/attested-decrypt.d.ts +20 -19
- package/dist/cjs/attesteddecrypt/attested-decrypt.js +67 -61
- package/dist/cjs/attesteddecrypt/index.d.ts +0 -1
- package/dist/cjs/attesteddecrypt/index.js +1 -2
- package/dist/cjs/attesteddecrypt/types.d.ts +3 -2
- package/dist/cjs/attestedreveal/attested-reveal.d.ts +21 -0
- package/dist/cjs/attestedreveal/attested-reveal.js +66 -0
- package/dist/cjs/attestedreveal/index.d.ts +1 -0
- package/dist/cjs/{fhevm → attestedreveal}/index.js +2 -2
- package/dist/cjs/attestedreveal/types.d.ts +7 -0
- package/dist/cjs/attestedreveal/types.js +16 -0
- package/dist/cjs/generated/abis/addTwo.d.ts +18 -0
- package/dist/cjs/generated/abis/addTwo.js +9 -1
- package/dist/cjs/generated/abis/lightning-preview.d.ts +48 -0
- package/dist/cjs/generated/abis/lightning-preview.js +29 -1
- package/dist/cjs/generated/abis/lightning.d.ts +34 -0
- package/dist/cjs/generated/abis/lightning.js +22 -1
- package/dist/cjs/generated/es/inco/kms/lite/v1/kms_service_pb.d.ts +63 -5
- package/dist/cjs/generated/es/inco/kms/lite/v1/kms_service_pb.js +17 -7
- package/dist/cjs/generated/lightning.d.ts +31 -10
- package/dist/cjs/generated/lightning.js +33 -11
- package/dist/cjs/lite/attested-compute.d.ts +5 -4
- package/dist/cjs/lite/attested-compute.js +4 -3
- package/dist/cjs/lite/attested-decrypt.d.ts +3 -2
- package/dist/cjs/lite/attested-decrypt.js +4 -3
- package/dist/cjs/lite/index.d.ts +4 -1
- package/dist/cjs/lite/index.js +3 -1
- package/dist/cjs/lite/lightning.d.ts +73 -2
- package/dist/cjs/lite/lightning.js +65 -1
- package/dist/cjs/lite/reencrypt.d.ts +0 -1
- package/dist/cjs/lite/reencrypt.js +8 -20
- package/dist/cjs/local/local-node.js +35 -3
- package/dist/cjs/reencryption/types.d.ts +1 -2
- package/dist/esm/advancedacl/session-key.d.ts +29 -0
- package/dist/esm/advancedacl/session-key.js +160 -22
- package/dist/esm/attestedcompute/attested-compute.d.ts +16 -16
- package/dist/esm/attestedcompute/attested-compute.js +64 -72
- package/dist/esm/attestedcompute/types.d.ts +3 -2
- package/dist/esm/attesteddecrypt/attested-decrypt.d.ts +20 -19
- package/dist/esm/attesteddecrypt/attested-decrypt.js +65 -60
- package/dist/esm/attesteddecrypt/index.d.ts +0 -1
- package/dist/esm/attesteddecrypt/index.js +1 -2
- package/dist/esm/attesteddecrypt/types.d.ts +3 -2
- package/dist/esm/attestedreveal/attested-reveal.d.ts +21 -0
- package/dist/esm/attestedreveal/attested-reveal.js +63 -0
- package/dist/esm/attestedreveal/index.d.ts +1 -0
- package/dist/esm/attestedreveal/index.js +2 -0
- package/dist/esm/attestedreveal/types.d.ts +7 -0
- package/dist/esm/attestedreveal/types.js +12 -0
- package/dist/esm/generated/abis/addTwo.d.ts +18 -0
- package/dist/esm/generated/abis/addTwo.js +9 -1
- package/dist/esm/generated/abis/lightning-preview.d.ts +48 -0
- package/dist/esm/generated/abis/lightning-preview.js +29 -1
- package/dist/esm/generated/abis/lightning.d.ts +34 -0
- package/dist/esm/generated/abis/lightning.js +22 -1
- package/dist/esm/generated/es/inco/kms/lite/v1/kms_service_pb.d.ts +63 -5
- package/dist/esm/generated/es/inco/kms/lite/v1/kms_service_pb.js +16 -6
- package/dist/esm/generated/lightning.d.ts +31 -10
- package/dist/esm/generated/lightning.js +33 -11
- package/dist/esm/lite/attested-compute.d.ts +5 -4
- package/dist/esm/lite/attested-compute.js +3 -3
- package/dist/esm/lite/attested-decrypt.d.ts +3 -2
- package/dist/esm/lite/attested-decrypt.js +3 -3
- package/dist/esm/lite/index.d.ts +4 -1
- package/dist/esm/lite/index.js +3 -1
- package/dist/esm/lite/lightning.d.ts +73 -2
- package/dist/esm/lite/lightning.js +66 -2
- package/dist/esm/lite/reencrypt.d.ts +0 -1
- package/dist/esm/lite/reencrypt.js +9 -20
- package/dist/esm/local/local-node.js +35 -3
- package/dist/esm/reencryption/types.d.ts +1 -2
- package/dist/types/advancedacl/session-key.d.ts +29 -0
- package/dist/types/attestedcompute/attested-compute.d.ts +16 -16
- package/dist/types/attestedcompute/types.d.ts +3 -2
- package/dist/types/attesteddecrypt/attested-decrypt.d.ts +20 -19
- package/dist/types/attesteddecrypt/index.d.ts +0 -1
- package/dist/types/attesteddecrypt/types.d.ts +3 -2
- package/dist/types/attestedreveal/attested-reveal.d.ts +21 -0
- package/dist/types/attestedreveal/index.d.ts +1 -0
- package/dist/types/attestedreveal/types.d.ts +7 -0
- package/dist/types/generated/abis/addTwo.d.ts +18 -0
- package/dist/types/generated/abis/lightning-preview.d.ts +48 -0
- package/dist/types/generated/abis/lightning.d.ts +34 -0
- package/dist/types/generated/es/inco/kms/lite/v1/kms_service_pb.d.ts +63 -5
- package/dist/types/generated/lightning.d.ts +31 -10
- package/dist/types/lite/attested-compute.d.ts +5 -4
- package/dist/types/lite/attested-decrypt.d.ts +3 -2
- package/dist/types/lite/index.d.ts +4 -1
- package/dist/types/lite/lightning.d.ts +73 -2
- package/dist/types/lite/reencrypt.d.ts +0 -1
- package/dist/types/reencryption/types.d.ts +1 -2
- package/package.json +28 -17
- package/dist/cjs/fhevm/fhe-environment.d.ts +0 -9
- package/dist/cjs/fhevm/fhe-environment.js +0 -11
- package/dist/cjs/fhevm/fhevm.d.ts +0 -41
- package/dist/cjs/fhevm/fhevm.js +0 -145
- package/dist/cjs/fhevm/index.d.ts +0 -1
- package/dist/cjs/fhevm/reencrypt.d.ts +0 -20
- package/dist/cjs/fhevm/reencrypt.js +0 -127
- package/dist/cjs/fhevm/tfhe.d.ts +0 -74
- package/dist/cjs/fhevm/tfhe.js +0 -336
- package/dist/cjs/fhevm/types.d.ts +0 -3
- package/dist/cjs/fhevm/types.js +0 -29
- package/dist/cjs/generated/abis/inco-fhevm.d.ts +0 -874
- package/dist/cjs/generated/abis/inco-fhevm.js +0 -681
- package/dist/cjs/generated/es/cosmos/msg/v1/msg_pb.d.ts +0 -29
- package/dist/cjs/generated/es/cosmos/msg/v1/msg_pb.js +0 -36
- package/dist/cjs/generated/es/google/api/annotations_pb.d.ts +0 -13
- package/dist/cjs/generated/es/google/api/annotations_pb.js +0 -30
- package/dist/cjs/generated/es/google/api/http_pb.d.ts +0 -440
- package/dist/cjs/generated/es/google/api/http_pb.js +0 -37
- package/dist/cjs/generated/es/inco/fhe/v1/events_pb.d.ts +0 -79
- package/dist/cjs/generated/es/inco/fhe/v1/events_pb.js +0 -24
- package/dist/cjs/generated/es/inco/fhe/v1/genesis_pb.d.ts +0 -252
- package/dist/cjs/generated/es/inco/fhe/v1/genesis_pb.js +0 -49
- package/dist/cjs/generated/es/inco/fhe/v1/query_pb.d.ts +0 -569
- package/dist/cjs/generated/es/inco/fhe/v1/query_pb.js +0 -111
- package/dist/cjs/generated/es/inco/fhe/v1/tx_pb.d.ts +0 -494
- package/dist/cjs/generated/es/inco/fhe/v1/tx_pb.js +0 -111
- package/dist/cjs/generated/es/inco/preflight/v1/genesis_pb.d.ts +0 -56
- package/dist/cjs/generated/es/inco/preflight/v1/genesis_pb.js +0 -23
- package/dist/cjs/generated/es/inco/preflight/v1/query_pb.d.ts +0 -100
- package/dist/cjs/generated/es/inco/preflight/v1/query_pb.js +0 -41
- package/dist/cjs/generated/es/inco/preflight/v1/tx_pb.d.ts +0 -193
- package/dist/cjs/generated/es/inco/preflight/v1/tx_pb.js +0 -51
- package/dist/cjs/generated/es/inco/preflight/v1/types_pb.d.ts +0 -144
- package/dist/cjs/generated/es/inco/preflight/v1/types_pb.js +0 -37
- package/dist/cjs/generated/fhe-environments.d.ts +0 -14
- package/dist/cjs/generated/fhe-environments.js +0 -18
- package/dist/cjs/generated/ts/amino/amino.d.ts +0 -1
- package/dist/cjs/generated/ts/amino/amino.js +0 -11
- package/dist/cjs/generated/ts/cometbft/abci/v1/types.d.ts +0 -597
- package/dist/cjs/generated/ts/cometbft/abci/v1/types.js +0 -5079
- package/dist/cjs/generated/ts/cometbft/crypto/v1/keys.d.ts +0 -27
- package/dist/cjs/generated/ts/cometbft/crypto/v1/keys.js +0 -108
- package/dist/cjs/generated/ts/cometbft/crypto/v1/proof.d.ts +0 -60
- package/dist/cjs/generated/ts/cometbft/crypto/v1/proof.js +0 -433
- package/dist/cjs/generated/ts/cometbft/types/v1/params.d.ts +0 -179
- package/dist/cjs/generated/ts/cometbft/types/v1/params.js +0 -716
- package/dist/cjs/generated/ts/cometbft/types/v1/validator.d.ts +0 -61
- package/dist/cjs/generated/ts/cometbft/types/v1/validator.js +0 -358
- package/dist/cjs/generated/ts/cosmos/app/v1alpha1/module.d.ts +0 -104
- package/dist/cjs/generated/ts/cosmos/app/v1alpha1/module.js +0 -221
- package/dist/cjs/generated/ts/cosmos/msg/v1/msg.d.ts +0 -1
- package/dist/cjs/generated/ts/cosmos/msg/v1/msg.js +0 -11
- package/dist/cjs/generated/ts/cosmos_proto/cosmos.d.ts +0 -80
- package/dist/cjs/generated/ts/cosmos_proto/cosmos.js +0 -216
- package/dist/cjs/generated/ts/gogoproto/gogo.d.ts +0 -1
- package/dist/cjs/generated/ts/gogoproto/gogo.js +0 -11
- package/dist/cjs/generated/ts/google/api/annotations.d.ts +0 -1
- package/dist/cjs/generated/ts/google/api/annotations.js +0 -11
- package/dist/cjs/generated/ts/google/api/http.d.ts +0 -371
- package/dist/cjs/generated/ts/google/api/http.js +0 -356
- package/dist/cjs/generated/ts/google/protobuf/descriptor.d.ts +0 -1228
- package/dist/cjs/generated/ts/google/protobuf/descriptor.js +0 -5108
- package/dist/cjs/generated/ts/google/protobuf/duration.d.ts +0 -99
- package/dist/cjs/generated/ts/google/protobuf/duration.js +0 -93
- package/dist/cjs/generated/ts/google/protobuf/timestamp.d.ts +0 -128
- package/dist/cjs/generated/ts/google/protobuf/timestamp.js +0 -93
- package/dist/cjs/generated/ts/google/protobuf/wrappers.d.ts +0 -111
- package/dist/cjs/generated/ts/google/protobuf/wrappers.js +0 -509
- package/dist/cjs/generated/ts/inco/abci/v1/types.d.ts +0 -35
- package/dist/cjs/generated/ts/inco/abci/v1/types.js +0 -73
- package/dist/cjs/generated/ts/inco/fhe/module/v1/module.d.ts +0 -31
- package/dist/cjs/generated/ts/inco/fhe/module/v1/module.js +0 -66
- package/dist/cjs/generated/ts/inco/fhe/v1/events.d.ts +0 -66
- package/dist/cjs/generated/ts/inco/fhe/v1/events.js +0 -190
- package/dist/cjs/generated/ts/inco/fhe/v1/genesis.d.ts +0 -117
- package/dist/cjs/generated/ts/inco/fhe/v1/genesis.js +0 -714
- package/dist/cjs/generated/ts/inco/fhe/v1/query.d.ts +0 -366
- package/dist/cjs/generated/ts/inco/fhe/v1/query.js +0 -1394
- package/dist/cjs/generated/ts/inco/fhe/v1/tx.d.ts +0 -409
- package/dist/cjs/generated/ts/inco/fhe/v1/tx.js +0 -1236
- package/dist/cjs/generated/ts/inco/fhe/v1/types.d.ts +0 -225
- package/dist/cjs/generated/ts/inco/fhe/v1/types.js +0 -990
- package/dist/cjs/generated/ts/inco/originchain/module/v1/module.d.ts +0 -30
- package/dist/cjs/generated/ts/inco/originchain/module/v1/module.js +0 -66
- package/dist/cjs/generated/ts/inco/originchain/v1/abci.d.ts +0 -80
- package/dist/cjs/generated/ts/inco/originchain/v1/abci.js +0 -331
- package/dist/cjs/generated/ts/inco/originchain/v1/events.d.ts +0 -60
- package/dist/cjs/generated/ts/inco/originchain/v1/events.js +0 -216
- package/dist/cjs/generated/ts/inco/originchain/v1/genesis.d.ts +0 -28
- package/dist/cjs/generated/ts/inco/originchain/v1/genesis.js +0 -69
- package/dist/cjs/generated/ts/inco/originchain/v1/query.d.ts +0 -116
- package/dist/cjs/generated/ts/inco/originchain/v1/query.js +0 -280
- package/dist/cjs/generated/ts/inco/originchain/v1/tx.d.ts +0 -89
- package/dist/cjs/generated/ts/inco/originchain/v1/tx.js +0 -140
- package/dist/cjs/generated/ts/inco/originchain/v1/types.d.ts +0 -58
- package/dist/cjs/generated/ts/inco/originchain/v1/types.js +0 -203
- package/dist/cjs/generated/ts/inco/preflight/module/v1/module.d.ts +0 -31
- package/dist/cjs/generated/ts/inco/preflight/module/v1/module.js +0 -66
- package/dist/cjs/generated/ts/inco/preflight/v1/genesis.d.ts +0 -41
- package/dist/cjs/generated/ts/inco/preflight/v1/genesis.js +0 -185
- package/dist/cjs/generated/ts/inco/preflight/v1/query.d.ts +0 -93
- package/dist/cjs/generated/ts/inco/preflight/v1/query.js +0 -259
- package/dist/cjs/generated/ts/inco/preflight/v1/tx.d.ts +0 -187
- package/dist/cjs/generated/ts/inco/preflight/v1/tx.js +0 -448
- package/dist/cjs/generated/ts/inco/preflight/v1/types.d.ts +0 -84
- package/dist/cjs/generated/ts/inco/preflight/v1/types.js +0 -398
- package/dist/cjs/l1/client.d.ts +0 -35
- package/dist/cjs/l1/client.js +0 -97
- package/dist/cjs/l1/index.d.ts +0 -2
- package/dist/cjs/l1/index.js +0 -19
- package/dist/cjs/l1/preflight.d.ts +0 -20
- package/dist/cjs/l1/preflight.js +0 -42
- package/dist/esm/fhevm/fhe-environment.d.ts +0 -9
- package/dist/esm/fhevm/fhe-environment.js +0 -8
- package/dist/esm/fhevm/fhevm.d.ts +0 -41
- package/dist/esm/fhevm/fhevm.js +0 -139
- package/dist/esm/fhevm/index.d.ts +0 -1
- package/dist/esm/fhevm/index.js +0 -2
- package/dist/esm/fhevm/reencrypt.d.ts +0 -20
- package/dist/esm/fhevm/reencrypt.js +0 -123
- package/dist/esm/fhevm/tfhe.d.ts +0 -74
- package/dist/esm/fhevm/tfhe.js +0 -328
- package/dist/esm/fhevm/types.d.ts +0 -3
- package/dist/esm/fhevm/types.js +0 -26
- package/dist/esm/generated/abis/inco-fhevm.d.ts +0 -874
- package/dist/esm/generated/abis/inco-fhevm.js +0 -678
- package/dist/esm/generated/es/cosmos/msg/v1/msg_pb.d.ts +0 -29
- package/dist/esm/generated/es/cosmos/msg/v1/msg_pb.js +0 -33
- package/dist/esm/generated/es/google/api/annotations_pb.d.ts +0 -13
- package/dist/esm/generated/es/google/api/annotations_pb.js +0 -27
- package/dist/esm/generated/es/google/api/http_pb.d.ts +0 -440
- package/dist/esm/generated/es/google/api/http_pb.js +0 -34
- package/dist/esm/generated/es/inco/fhe/v1/events_pb.d.ts +0 -79
- package/dist/esm/generated/es/inco/fhe/v1/events_pb.js +0 -21
- package/dist/esm/generated/es/inco/fhe/v1/genesis_pb.d.ts +0 -252
- package/dist/esm/generated/es/inco/fhe/v1/genesis_pb.js +0 -46
- package/dist/esm/generated/es/inco/fhe/v1/query_pb.d.ts +0 -569
- package/dist/esm/generated/es/inco/fhe/v1/query_pb.js +0 -108
- package/dist/esm/generated/es/inco/fhe/v1/tx_pb.d.ts +0 -494
- package/dist/esm/generated/es/inco/fhe/v1/tx_pb.js +0 -108
- package/dist/esm/generated/es/inco/preflight/v1/genesis_pb.d.ts +0 -56
- package/dist/esm/generated/es/inco/preflight/v1/genesis_pb.js +0 -20
- package/dist/esm/generated/es/inco/preflight/v1/query_pb.d.ts +0 -100
- package/dist/esm/generated/es/inco/preflight/v1/query_pb.js +0 -38
- package/dist/esm/generated/es/inco/preflight/v1/tx_pb.d.ts +0 -193
- package/dist/esm/generated/es/inco/preflight/v1/tx_pb.js +0 -48
- package/dist/esm/generated/es/inco/preflight/v1/types_pb.d.ts +0 -144
- package/dist/esm/generated/es/inco/preflight/v1/types_pb.js +0 -34
- package/dist/esm/generated/fhe-environments.d.ts +0 -14
- package/dist/esm/generated/fhe-environments.js +0 -15
- package/dist/esm/generated/ts/amino/amino.d.ts +0 -1
- package/dist/esm/generated/ts/amino/amino.js +0 -8
- package/dist/esm/generated/ts/cometbft/abci/v1/types.d.ts +0 -597
- package/dist/esm/generated/ts/cometbft/abci/v1/types.js +0 -5063
- package/dist/esm/generated/ts/cometbft/crypto/v1/keys.d.ts +0 -27
- package/dist/esm/generated/ts/cometbft/crypto/v1/keys.js +0 -105
- package/dist/esm/generated/ts/cometbft/crypto/v1/proof.d.ts +0 -60
- package/dist/esm/generated/ts/cometbft/crypto/v1/proof.js +0 -430
- package/dist/esm/generated/ts/cometbft/types/v1/params.d.ts +0 -179
- package/dist/esm/generated/ts/cometbft/types/v1/params.js +0 -713
- package/dist/esm/generated/ts/cometbft/types/v1/validator.d.ts +0 -61
- package/dist/esm/generated/ts/cometbft/types/v1/validator.js +0 -353
- package/dist/esm/generated/ts/cosmos/app/v1alpha1/module.d.ts +0 -104
- package/dist/esm/generated/ts/cosmos/app/v1alpha1/module.js +0 -218
- package/dist/esm/generated/ts/cosmos/msg/v1/msg.d.ts +0 -1
- package/dist/esm/generated/ts/cosmos/msg/v1/msg.js +0 -8
- package/dist/esm/generated/ts/cosmos_proto/cosmos.d.ts +0 -80
- package/dist/esm/generated/ts/cosmos_proto/cosmos.js +0 -211
- package/dist/esm/generated/ts/gogoproto/gogo.d.ts +0 -1
- package/dist/esm/generated/ts/gogoproto/gogo.js +0 -8
- package/dist/esm/generated/ts/google/api/annotations.d.ts +0 -1
- package/dist/esm/generated/ts/google/api/annotations.js +0 -8
- package/dist/esm/generated/ts/google/api/http.d.ts +0 -371
- package/dist/esm/generated/ts/google/api/http.js +0 -353
- package/dist/esm/generated/ts/google/protobuf/descriptor.d.ts +0 -1228
- package/dist/esm/generated/ts/google/protobuf/descriptor.js +0 -5070
- package/dist/esm/generated/ts/google/protobuf/duration.d.ts +0 -99
- package/dist/esm/generated/ts/google/protobuf/duration.js +0 -90
- package/dist/esm/generated/ts/google/protobuf/timestamp.d.ts +0 -128
- package/dist/esm/generated/ts/google/protobuf/timestamp.js +0 -90
- package/dist/esm/generated/ts/google/protobuf/wrappers.d.ts +0 -111
- package/dist/esm/generated/ts/google/protobuf/wrappers.js +0 -506
- package/dist/esm/generated/ts/inco/abci/v1/types.d.ts +0 -35
- package/dist/esm/generated/ts/inco/abci/v1/types.js +0 -70
- package/dist/esm/generated/ts/inco/fhe/module/v1/module.d.ts +0 -31
- package/dist/esm/generated/ts/inco/fhe/module/v1/module.js +0 -63
- package/dist/esm/generated/ts/inco/fhe/v1/events.d.ts +0 -66
- package/dist/esm/generated/ts/inco/fhe/v1/events.js +0 -187
- package/dist/esm/generated/ts/inco/fhe/v1/genesis.d.ts +0 -117
- package/dist/esm/generated/ts/inco/fhe/v1/genesis.js +0 -711
- package/dist/esm/generated/ts/inco/fhe/v1/query.d.ts +0 -366
- package/dist/esm/generated/ts/inco/fhe/v1/query.js +0 -1391
- package/dist/esm/generated/ts/inco/fhe/v1/tx.d.ts +0 -409
- package/dist/esm/generated/ts/inco/fhe/v1/tx.js +0 -1233
- package/dist/esm/generated/ts/inco/fhe/v1/types.d.ts +0 -225
- package/dist/esm/generated/ts/inco/fhe/v1/types.js +0 -985
- package/dist/esm/generated/ts/inco/originchain/module/v1/module.d.ts +0 -30
- package/dist/esm/generated/ts/inco/originchain/module/v1/module.js +0 -63
- package/dist/esm/generated/ts/inco/originchain/v1/abci.d.ts +0 -80
- package/dist/esm/generated/ts/inco/originchain/v1/abci.js +0 -328
- package/dist/esm/generated/ts/inco/originchain/v1/events.d.ts +0 -60
- package/dist/esm/generated/ts/inco/originchain/v1/events.js +0 -213
- package/dist/esm/generated/ts/inco/originchain/v1/genesis.d.ts +0 -28
- package/dist/esm/generated/ts/inco/originchain/v1/genesis.js +0 -66
- package/dist/esm/generated/ts/inco/originchain/v1/query.d.ts +0 -116
- package/dist/esm/generated/ts/inco/originchain/v1/query.js +0 -277
- package/dist/esm/generated/ts/inco/originchain/v1/tx.d.ts +0 -89
- package/dist/esm/generated/ts/inco/originchain/v1/tx.js +0 -137
- package/dist/esm/generated/ts/inco/originchain/v1/types.d.ts +0 -58
- package/dist/esm/generated/ts/inco/originchain/v1/types.js +0 -200
- package/dist/esm/generated/ts/inco/preflight/module/v1/module.d.ts +0 -31
- package/dist/esm/generated/ts/inco/preflight/module/v1/module.js +0 -63
- package/dist/esm/generated/ts/inco/preflight/v1/genesis.d.ts +0 -41
- package/dist/esm/generated/ts/inco/preflight/v1/genesis.js +0 -182
- package/dist/esm/generated/ts/inco/preflight/v1/query.d.ts +0 -93
- package/dist/esm/generated/ts/inco/preflight/v1/query.js +0 -256
- package/dist/esm/generated/ts/inco/preflight/v1/tx.d.ts +0 -187
- package/dist/esm/generated/ts/inco/preflight/v1/tx.js +0 -445
- package/dist/esm/generated/ts/inco/preflight/v1/types.d.ts +0 -84
- package/dist/esm/generated/ts/inco/preflight/v1/types.js +0 -395
- package/dist/esm/l1/client.d.ts +0 -35
- package/dist/esm/l1/client.js +0 -93
- package/dist/esm/l1/index.d.ts +0 -2
- package/dist/esm/l1/index.js +0 -3
- package/dist/esm/l1/preflight.d.ts +0 -20
- package/dist/esm/l1/preflight.js +0 -39
- package/dist/types/fhevm/fhe-environment.d.ts +0 -9
- package/dist/types/fhevm/fhevm.d.ts +0 -41
- package/dist/types/fhevm/index.d.ts +0 -1
- package/dist/types/fhevm/reencrypt.d.ts +0 -20
- package/dist/types/fhevm/tfhe.d.ts +0 -74
- package/dist/types/fhevm/types.d.ts +0 -3
- package/dist/types/generated/abis/inco-fhevm.d.ts +0 -874
- package/dist/types/generated/es/cosmos/msg/v1/msg_pb.d.ts +0 -29
- package/dist/types/generated/es/google/api/annotations_pb.d.ts +0 -13
- package/dist/types/generated/es/google/api/http_pb.d.ts +0 -440
- package/dist/types/generated/es/inco/fhe/v1/events_pb.d.ts +0 -79
- package/dist/types/generated/es/inco/fhe/v1/genesis_pb.d.ts +0 -252
- package/dist/types/generated/es/inco/fhe/v1/query_pb.d.ts +0 -569
- package/dist/types/generated/es/inco/fhe/v1/tx_pb.d.ts +0 -494
- package/dist/types/generated/es/inco/preflight/v1/genesis_pb.d.ts +0 -56
- package/dist/types/generated/es/inco/preflight/v1/query_pb.d.ts +0 -100
- package/dist/types/generated/es/inco/preflight/v1/tx_pb.d.ts +0 -193
- package/dist/types/generated/es/inco/preflight/v1/types_pb.d.ts +0 -144
- package/dist/types/generated/fhe-environments.d.ts +0 -14
- package/dist/types/generated/ts/amino/amino.d.ts +0 -1
- package/dist/types/generated/ts/cometbft/abci/v1/types.d.ts +0 -597
- package/dist/types/generated/ts/cometbft/crypto/v1/keys.d.ts +0 -27
- package/dist/types/generated/ts/cometbft/crypto/v1/proof.d.ts +0 -60
- package/dist/types/generated/ts/cometbft/types/v1/params.d.ts +0 -179
- package/dist/types/generated/ts/cometbft/types/v1/validator.d.ts +0 -61
- package/dist/types/generated/ts/cosmos/app/v1alpha1/module.d.ts +0 -104
- package/dist/types/generated/ts/cosmos/msg/v1/msg.d.ts +0 -1
- package/dist/types/generated/ts/cosmos_proto/cosmos.d.ts +0 -80
- package/dist/types/generated/ts/gogoproto/gogo.d.ts +0 -1
- package/dist/types/generated/ts/google/api/annotations.d.ts +0 -1
- package/dist/types/generated/ts/google/api/http.d.ts +0 -371
- package/dist/types/generated/ts/google/protobuf/descriptor.d.ts +0 -1228
- package/dist/types/generated/ts/google/protobuf/duration.d.ts +0 -99
- package/dist/types/generated/ts/google/protobuf/timestamp.d.ts +0 -128
- package/dist/types/generated/ts/google/protobuf/wrappers.d.ts +0 -111
- package/dist/types/generated/ts/inco/abci/v1/types.d.ts +0 -35
- package/dist/types/generated/ts/inco/fhe/module/v1/module.d.ts +0 -31
- package/dist/types/generated/ts/inco/fhe/v1/events.d.ts +0 -66
- package/dist/types/generated/ts/inco/fhe/v1/genesis.d.ts +0 -117
- package/dist/types/generated/ts/inco/fhe/v1/query.d.ts +0 -366
- package/dist/types/generated/ts/inco/fhe/v1/tx.d.ts +0 -409
- package/dist/types/generated/ts/inco/fhe/v1/types.d.ts +0 -225
- package/dist/types/generated/ts/inco/originchain/module/v1/module.d.ts +0 -30
- package/dist/types/generated/ts/inco/originchain/v1/abci.d.ts +0 -80
- package/dist/types/generated/ts/inco/originchain/v1/events.d.ts +0 -60
- package/dist/types/generated/ts/inco/originchain/v1/genesis.d.ts +0 -28
- package/dist/types/generated/ts/inco/originchain/v1/query.d.ts +0 -116
- package/dist/types/generated/ts/inco/originchain/v1/tx.d.ts +0 -89
- package/dist/types/generated/ts/inco/originchain/v1/types.d.ts +0 -58
- package/dist/types/generated/ts/inco/preflight/module/v1/module.d.ts +0 -31
- package/dist/types/generated/ts/inco/preflight/v1/genesis.d.ts +0 -41
- package/dist/types/generated/ts/inco/preflight/v1/query.d.ts +0 -93
- package/dist/types/generated/ts/inco/preflight/v1/tx.d.ts +0 -187
- package/dist/types/generated/ts/inco/preflight/v1/types.d.ts +0 -84
- package/dist/types/l1/client.d.ts +0 -35
- package/dist/types/l1/index.d.ts +0 -2
- package/dist/types/l1/preflight.d.ts +0 -20
@@ -1,8 +1,13 @@
|
|
1
1
|
import type { Account, Chain, Transport, WalletClient } from 'viem';
|
2
|
+
import { DecryptionAttestation } from '../attesteddecrypt/types.js';
|
3
|
+
import { HexString } from '../binary.js';
|
2
4
|
import { SupportedChainId } from '../chain.js';
|
3
|
-
import { EciesScheme } from '../encryption/encryption.js';
|
5
|
+
import { EciesScheme, SupportedFheType } from '../encryption/encryption.js';
|
4
6
|
import type { KmsClient } from '../kms/client.js';
|
5
|
-
import {
|
7
|
+
import type { BackoffConfig } from '../retry.js';
|
8
|
+
import { AttestedComputeOP } from './types.js';
|
9
|
+
export declare const ATTESTED_COMPUTE_DOMAIN_NAME = "IncoAttestedCompute";
|
10
|
+
export declare const ATTESTED_COMPUTE_DOMAIN_VERSION = "0.1.0";
|
6
11
|
/**
|
7
12
|
* Arguments for creating an attested compute.
|
8
13
|
*/
|
@@ -21,18 +26,13 @@ export interface IncoLiteAttestedComputeArgs {
|
|
21
26
|
* @throws {AttestedComputeError} If the creation fails
|
22
27
|
*
|
23
28
|
* @todo Support multiple operations in a single request.
|
24
|
-
*
|
25
|
-
* @example
|
26
|
-
* ```typescript
|
27
|
-
* const compute = await incoLiteAttestedCompute({
|
28
|
-
* walletClient,
|
29
|
-
* chainId: sepolia,
|
30
|
-
* });
|
31
|
-
* const decryptionAttestation = await compute({
|
32
|
-
* lhsHandle: '0x...',
|
33
|
-
* op: AttestedComputeSupportedOps.Eq,
|
34
|
-
* rhsPlaintext: 1337n,
|
35
|
-
* });
|
36
|
-
* ```
|
37
29
|
*/
|
38
|
-
export declare function
|
30
|
+
export declare function attestedCompute<T extends SupportedFheType>({ lhsHandle, op, rhsPlaintext, backoffConfig, walletClient, kmsConnectRpcEndpointOrClient, chainId, }: {
|
31
|
+
lhsHandle: HexString;
|
32
|
+
op: AttestedComputeOP;
|
33
|
+
rhsPlaintext: bigint | boolean;
|
34
|
+
backoffConfig?: Partial<BackoffConfig> | undefined;
|
35
|
+
walletClient: WalletClient<Transport, Chain, Account>;
|
36
|
+
kmsConnectRpcEndpointOrClient?: string | KmsClient;
|
37
|
+
chainId: SupportedChainId;
|
38
|
+
}): Promise<DecryptionAttestation<EciesScheme, T>>;
|
@@ -25,10 +25,11 @@ export declare class AttestedComputeError extends Error {
|
|
25
25
|
readonly cause?: unknown | undefined;
|
26
26
|
constructor(message: string, cause?: unknown | undefined);
|
27
27
|
}
|
28
|
-
export type AttestedCompute<S extends EncryptionScheme> = <T extends SupportedFheType>(args:
|
28
|
+
export type AttestedCompute<S extends EncryptionScheme> = <T extends SupportedFheType>(args: AttestedComputeFnArgs<S, T>) => Promise<DecryptionAttestation<S, T>>;
|
29
|
+
export type AttestedComputeFnArgs<S extends EncryptionScheme, T extends SupportedFheType> = {
|
29
30
|
/** The handle to compute on */
|
30
31
|
lhsHandle: HexString;
|
31
32
|
op: AttestedComputeOP;
|
32
33
|
rhsPlaintext: bigint | boolean;
|
33
34
|
backoffConfig?: Partial<BackoffConfig>;
|
34
|
-
}
|
35
|
+
};
|
@@ -1,16 +1,20 @@
|
|
1
1
|
import type { Account, Chain, Transport, WalletClient } from 'viem';
|
2
|
+
import { HexString } from '../binary.js';
|
2
3
|
import { SupportedChainId } from '../chain.js';
|
3
|
-
import { EciesScheme } from '../encryption/encryption.js';
|
4
|
+
import { EciesScheme, SupportedFheType } from '../encryption/encryption.js';
|
4
5
|
import type { KmsClient } from '../kms/client.js';
|
5
|
-
import {
|
6
|
+
import type { BackoffConfig } from '../retry.js';
|
7
|
+
import { DecryptionAttestation } from './types.js';
|
8
|
+
export declare const ATTESTED_DECRYPT_DOMAIN_NAME = "IncoAttestedDecrypt";
|
9
|
+
export declare const ATTESTED_DECRYPT_DOMAIN_VERSION = "0.1.0";
|
6
10
|
/**
|
7
11
|
* Validates a handle format.
|
8
12
|
* @param handle - The handle to validate
|
9
13
|
* @throws {AttestedDecryptError} If the handle format is invalid
|
10
14
|
*/
|
11
|
-
export declare function validateHandle(handle:
|
15
|
+
export declare function validateHandle(handle: HexString): void;
|
12
16
|
/**
|
13
|
-
* Arguments for creating an attested
|
17
|
+
* Arguments for creating an attested decrypt request.
|
14
18
|
*/
|
15
19
|
export interface IncoLiteAttestedDecryptorArgs {
|
16
20
|
/** The wallet used to interact with the blockchain and sign the decrypt request */
|
@@ -21,20 +25,17 @@ export interface IncoLiteAttestedDecryptorArgs {
|
|
21
25
|
chainId: SupportedChainId;
|
22
26
|
}
|
23
27
|
/**
|
24
|
-
*
|
25
|
-
*
|
26
|
-
* @returns A function that can decrypt handles using attestation
|
27
|
-
* @throws {AttestedDecryptError} If the decryptor creation fails
|
28
|
+
* Decrypt multiple handles in a single attested request.
|
29
|
+
* Returns an array of attestations aligned with the response ordering.
|
28
30
|
*
|
29
|
-
* @
|
30
|
-
*
|
31
|
-
* @
|
32
|
-
* ```typescript
|
33
|
-
* const decryptor = await incoLiteAttestedDecryptor({
|
34
|
-
* walletClient,
|
35
|
-
* chainId: sepolia,
|
36
|
-
* });
|
37
|
-
* const { plaintext, covalidatorSignature } = await decryptor({ handle: '0x...' });
|
38
|
-
* ```
|
31
|
+
* @param args - The arguments for creating the attested decrypt function
|
32
|
+
* @returns A function that can decrypt handles and return an attestation
|
33
|
+
* @throws {AttestedDecryptError} If the creation fails
|
39
34
|
*/
|
40
|
-
export declare function
|
35
|
+
export declare function attestedDecrypt({ handles, backoffConfig, walletClient, chainId, kmsConnectRpcEndpointOrClient, }: {
|
36
|
+
handles: HexString[];
|
37
|
+
backoffConfig?: Partial<BackoffConfig> | undefined;
|
38
|
+
walletClient: WalletClient<Transport, Chain, Account>;
|
39
|
+
chainId: SupportedChainId;
|
40
|
+
kmsConnectRpcEndpointOrClient?: string | KmsClient;
|
41
|
+
}): Promise<Array<DecryptionAttestation<EciesScheme, SupportedFheType>>>;
|
@@ -13,8 +13,9 @@ export type DecryptionAttestation<S extends EncryptionScheme, T extends Supporte
|
|
13
13
|
plaintext: PlaintextOf<S, T>;
|
14
14
|
covalidatorSignature: Uint8Array;
|
15
15
|
};
|
16
|
-
export type AttestedDecryptor<S extends EncryptionScheme> = <T extends SupportedFheType>(args:
|
16
|
+
export type AttestedDecryptor<S extends EncryptionScheme> = <T extends SupportedFheType>(args: AttestedDecryptFnArgs<S, T>) => Promise<DecryptionAttestation<S, T>>;
|
17
|
+
export type AttestedDecryptFnArgs<S extends EncryptionScheme, T extends SupportedFheType> = {
|
17
18
|
/** The handle to decrypt */
|
18
19
|
handle: HexString;
|
19
20
|
backoffConfig?: Partial<BackoffConfig>;
|
20
|
-
}
|
21
|
+
};
|
@@ -0,0 +1,21 @@
|
|
1
|
+
import { DecryptionAttestation } from '../attesteddecrypt/types.js';
|
2
|
+
import { HexString } from '../binary.js';
|
3
|
+
import { SupportedChainId } from '../chain.js';
|
4
|
+
import { EciesScheme, SupportedFheType } from '../encryption/encryption.js';
|
5
|
+
import type { KmsClient } from '../kms/client.js';
|
6
|
+
import type { BackoffConfig } from '../retry.js';
|
7
|
+
/**
|
8
|
+
* Just like attestedDecrypt, attestedReveal multiple revealed handles in a single attested request.
|
9
|
+
* Returns an array of attestations aligned with the response ordering.
|
10
|
+
* Handles must be revealed ahead of time using the .reveal() on-chain call.
|
11
|
+
*
|
12
|
+
* @param args - The arguments for creating the attested reveal function
|
13
|
+
* @returns A function that can reveal handles and return an attestation
|
14
|
+
* @throws {AttestedRevealError} If the creation fails
|
15
|
+
*/
|
16
|
+
export declare function attestedReveal({ handles, backoffConfig, chainId, kmsConnectRpcEndpointOrClient, }: {
|
17
|
+
handles: HexString[];
|
18
|
+
backoffConfig?: Partial<BackoffConfig> | undefined;
|
19
|
+
chainId: SupportedChainId;
|
20
|
+
kmsConnectRpcEndpointOrClient?: string | KmsClient;
|
21
|
+
}): Promise<Array<DecryptionAttestation<EciesScheme, SupportedFheType>>>;
|
@@ -0,0 +1 @@
|
|
1
|
+
export * from './types.js';
|
@@ -20,6 +20,20 @@ export declare const addTwoAbi: readonly [{
|
|
20
20
|
readonly type: "bytes32";
|
21
21
|
}];
|
22
22
|
readonly stateMutability: "nonpayable";
|
23
|
+
}, {
|
24
|
+
readonly type: "function";
|
25
|
+
readonly inputs: readonly [{
|
26
|
+
readonly name: "a";
|
27
|
+
readonly internalType: "euint256";
|
28
|
+
readonly type: "bytes32";
|
29
|
+
}];
|
30
|
+
readonly name: "addTwoAlt";
|
31
|
+
readonly outputs: readonly [{
|
32
|
+
readonly name: "";
|
33
|
+
readonly internalType: "euint256";
|
34
|
+
readonly type: "bytes32";
|
35
|
+
}];
|
36
|
+
readonly stateMutability: "nonpayable";
|
23
37
|
}, {
|
24
38
|
readonly type: "function";
|
25
39
|
readonly inputs: readonly [{
|
@@ -36,6 +50,10 @@ export declare const addTwoAbi: readonly [{
|
|
36
50
|
readonly name: "";
|
37
51
|
readonly internalType: "euint256";
|
38
52
|
readonly type: "bytes32";
|
53
|
+
}, {
|
54
|
+
readonly name: "";
|
55
|
+
readonly internalType: "euint256";
|
56
|
+
readonly type: "bytes32";
|
39
57
|
}];
|
40
58
|
readonly stateMutability: "nonpayable";
|
41
59
|
}, {
|
@@ -271,6 +271,20 @@ export declare const advancedAccessControlAbi: readonly [{
|
|
271
271
|
readonly type: "bool";
|
272
272
|
}];
|
273
273
|
readonly stateMutability: "nonpayable";
|
274
|
+
}, {
|
275
|
+
readonly type: "function";
|
276
|
+
readonly inputs: readonly [{
|
277
|
+
readonly name: "handle";
|
278
|
+
readonly internalType: "bytes32";
|
279
|
+
readonly type: "bytes32";
|
280
|
+
}];
|
281
|
+
readonly name: "isRevealed";
|
282
|
+
readonly outputs: readonly [{
|
283
|
+
readonly name: "";
|
284
|
+
readonly internalType: "bool";
|
285
|
+
readonly type: "bool";
|
286
|
+
}];
|
287
|
+
readonly stateMutability: "view";
|
274
288
|
}, {
|
275
289
|
readonly type: "function";
|
276
290
|
readonly inputs: readonly [{
|
@@ -289,6 +303,16 @@ export declare const advancedAccessControlAbi: readonly [{
|
|
289
303
|
readonly type: "bool";
|
290
304
|
}];
|
291
305
|
readonly stateMutability: "view";
|
306
|
+
}, {
|
307
|
+
readonly type: "function";
|
308
|
+
readonly inputs: readonly [{
|
309
|
+
readonly name: "handle";
|
310
|
+
readonly internalType: "bytes32";
|
311
|
+
readonly type: "bytes32";
|
312
|
+
}];
|
313
|
+
readonly name: "reveal";
|
314
|
+
readonly outputs: readonly [];
|
315
|
+
readonly stateMutability: "nonpayable";
|
292
316
|
}, {
|
293
317
|
readonly type: "function";
|
294
318
|
readonly inputs: readonly [];
|
@@ -1478,6 +1502,20 @@ export declare const iIncoLightningPreviewAbi: readonly [{
|
|
1478
1502
|
readonly type: "bool";
|
1479
1503
|
}];
|
1480
1504
|
readonly stateMutability: "nonpayable";
|
1505
|
+
}, {
|
1506
|
+
readonly type: "function";
|
1507
|
+
readonly inputs: readonly [{
|
1508
|
+
readonly name: "handle";
|
1509
|
+
readonly internalType: "bytes32";
|
1510
|
+
readonly type: "bytes32";
|
1511
|
+
}];
|
1512
|
+
readonly name: "isRevealed";
|
1513
|
+
readonly outputs: readonly [{
|
1514
|
+
readonly name: "";
|
1515
|
+
readonly internalType: "bool";
|
1516
|
+
readonly type: "bool";
|
1517
|
+
}];
|
1518
|
+
readonly stateMutability: "view";
|
1481
1519
|
}, {
|
1482
1520
|
readonly type: "function";
|
1483
1521
|
readonly inputs: readonly [{
|
@@ -1849,6 +1887,16 @@ export declare const iIncoLightningPreviewAbi: readonly [{
|
|
1849
1887
|
readonly type: "uint256";
|
1850
1888
|
}];
|
1851
1889
|
readonly stateMutability: "nonpayable";
|
1890
|
+
}, {
|
1891
|
+
readonly type: "function";
|
1892
|
+
readonly inputs: readonly [{
|
1893
|
+
readonly name: "handle";
|
1894
|
+
readonly internalType: "bytes32";
|
1895
|
+
readonly type: "bytes32";
|
1896
|
+
}];
|
1897
|
+
readonly name: "reveal";
|
1898
|
+
readonly outputs: readonly [];
|
1899
|
+
readonly stateMutability: "nonpayable";
|
1852
1900
|
}, {
|
1853
1901
|
readonly type: "function";
|
1854
1902
|
readonly inputs: readonly [];
|
@@ -755,6 +755,16 @@ export declare const incoLightningAbi: readonly [{
|
|
755
755
|
readonly type: "string";
|
756
756
|
}];
|
757
757
|
readonly stateMutability: "view";
|
758
|
+
}, {
|
759
|
+
readonly type: "function";
|
760
|
+
readonly inputs: readonly [];
|
761
|
+
readonly name: "getNextEventId";
|
762
|
+
readonly outputs: readonly [{
|
763
|
+
readonly name: "";
|
764
|
+
readonly internalType: "uint256";
|
765
|
+
readonly type: "uint256";
|
766
|
+
}];
|
767
|
+
readonly stateMutability: "view";
|
758
768
|
}, {
|
759
769
|
readonly type: "function";
|
760
770
|
readonly inputs: readonly [];
|
@@ -1045,6 +1055,20 @@ export declare const incoLightningAbi: readonly [{
|
|
1045
1055
|
readonly type: "bool";
|
1046
1056
|
}];
|
1047
1057
|
readonly stateMutability: "view";
|
1058
|
+
}, {
|
1059
|
+
readonly type: "function";
|
1060
|
+
readonly inputs: readonly [{
|
1061
|
+
readonly name: "handle";
|
1062
|
+
readonly internalType: "bytes32";
|
1063
|
+
readonly type: "bytes32";
|
1064
|
+
}];
|
1065
|
+
readonly name: "isRevealed";
|
1066
|
+
readonly outputs: readonly [{
|
1067
|
+
readonly name: "";
|
1068
|
+
readonly internalType: "bool";
|
1069
|
+
readonly type: "bool";
|
1070
|
+
}];
|
1071
|
+
readonly stateMutability: "view";
|
1048
1072
|
}, {
|
1049
1073
|
readonly type: "function";
|
1050
1074
|
readonly inputs: readonly [{
|
@@ -1241,6 +1265,16 @@ export declare const incoLightningAbi: readonly [{
|
|
1241
1265
|
readonly type: "uint256";
|
1242
1266
|
}];
|
1243
1267
|
readonly stateMutability: "nonpayable";
|
1268
|
+
}, {
|
1269
|
+
readonly type: "function";
|
1270
|
+
readonly inputs: readonly [{
|
1271
|
+
readonly name: "handle";
|
1272
|
+
readonly internalType: "bytes32";
|
1273
|
+
readonly type: "bytes32";
|
1274
|
+
}];
|
1275
|
+
readonly name: "reveal";
|
1276
|
+
readonly outputs: readonly [];
|
1277
|
+
readonly stateMutability: "nonpayable";
|
1244
1278
|
}, {
|
1245
1279
|
readonly type: "function";
|
1246
1280
|
readonly inputs: readonly [];
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import type { GenEnum, GenFile, GenMessage, GenService } from "@bufbuild/protobuf/codegenv2";
|
2
2
|
import type { TypedCiphertext } from "../../../fhe/v1/types_pb";
|
3
|
-
import type { ECIESKeyset, HandleWithProof } from "./types_pb";
|
3
|
+
import type { ACLProof, ECIESKeyset, HandleWithProof } from "./types_pb";
|
4
4
|
import type { Message } from "@bufbuild/protobuf";
|
5
5
|
/**
|
6
6
|
* Describes the file inco/kms/lite/v1/kms_service.proto.
|
@@ -196,19 +196,38 @@ export type AttestedDecryptRequest = Message<"inco.kms.lite.v1.AttestedDecryptRe
|
|
196
196
|
*/
|
197
197
|
eip712Signature: Uint8Array;
|
198
198
|
/**
|
199
|
-
*
|
200
|
-
*
|
199
|
+
* handles_with_proofs is the list of handles of the ciphertexts with proofs to decrypt.
|
200
|
+
* Either the user_address or sharer must have ACL access to the handles for the attested
|
201
201
|
* decryption to succeed.
|
202
202
|
*
|
203
|
-
* @generated from field: repeated
|
203
|
+
* @generated from field: repeated inco.kms.lite.v1.HandleWithProof handles_with_proofs = 3;
|
204
204
|
*/
|
205
|
-
|
205
|
+
handlesWithProofs: HandleWithProof[];
|
206
206
|
};
|
207
207
|
/**
|
208
208
|
* Describes the message inco.kms.lite.v1.AttestedDecryptRequest.
|
209
209
|
* Use `create(AttestedDecryptRequestSchema)` to create a new message.
|
210
210
|
*/
|
211
211
|
export declare const AttestedDecryptRequestSchema: GenMessage<AttestedDecryptRequest>;
|
212
|
+
/**
|
213
|
+
* AttestedRevealRequest is the request type for the KmsService/AttestedReveal RPC method.
|
214
|
+
*
|
215
|
+
* @generated from message inco.kms.lite.v1.AttestedRevealRequest
|
216
|
+
*/
|
217
|
+
export type AttestedRevealRequest = Message<"inco.kms.lite.v1.AttestedRevealRequest"> & {
|
218
|
+
/**
|
219
|
+
* handles is the list of handles of the ciphertexts to decrypt.
|
220
|
+
* The handle must have been revealed beforehand with the on-chain .reveal() call.
|
221
|
+
*
|
222
|
+
* @generated from field: repeated string handles = 3;
|
223
|
+
*/
|
224
|
+
handles: string[];
|
225
|
+
};
|
226
|
+
/**
|
227
|
+
* Describes the message inco.kms.lite.v1.AttestedRevealRequest.
|
228
|
+
* Use `create(AttestedRevealRequestSchema)` to create a new message.
|
229
|
+
*/
|
230
|
+
export declare const AttestedRevealRequestSchema: GenMessage<AttestedRevealRequest>;
|
212
231
|
/**
|
213
232
|
* AttestedComputeRequest is the request type for the KmsService/AttestedDecrypt RPC method.
|
214
233
|
*
|
@@ -278,6 +297,14 @@ export type AttestedComputeRequest = Message<"inco.kms.lite.v1.AttestedComputeRe
|
|
278
297
|
* @generated from field: string rhs_plaintext = 5;
|
279
298
|
*/
|
280
299
|
rhsPlaintext: string;
|
300
|
+
/**
|
301
|
+
* acl_proof is the proof that the user has access to compute on the lhs_handle.
|
302
|
+
* Either the user_address or sharer must have ACL access to the handles for the attested
|
303
|
+
* compute to succeed.
|
304
|
+
*
|
305
|
+
* @generated from field: inco.kms.lite.v1.ACLProof acl_proof = 6;
|
306
|
+
*/
|
307
|
+
aclProof?: ACLProof;
|
281
308
|
};
|
282
309
|
/**
|
283
310
|
* Describes the message inco.kms.lite.v1.AttestedComputeRequest.
|
@@ -303,6 +330,25 @@ export type AttestedDecryptResponse = Message<"inco.kms.lite.v1.AttestedDecryptR
|
|
303
330
|
* Use `create(AttestedDecryptResponseSchema)` to create a new message.
|
304
331
|
*/
|
305
332
|
export declare const AttestedDecryptResponseSchema: GenMessage<AttestedDecryptResponse>;
|
333
|
+
/**
|
334
|
+
* AttestedRevealResponse is the response type for the KmsService/AttestedReveal RPC method.
|
335
|
+
*
|
336
|
+
* @generated from message inco.kms.lite.v1.AttestedRevealResponse
|
337
|
+
*/
|
338
|
+
export type AttestedRevealResponse = Message<"inco.kms.lite.v1.AttestedRevealResponse"> & {
|
339
|
+
/**
|
340
|
+
* decryption_attestations is the list of decryption attestations. The item at index `i`
|
341
|
+
* corresponds to the handle at index `i` in the `AttestedRevealRequest`.
|
342
|
+
*
|
343
|
+
* @generated from field: repeated inco.kms.lite.v1.DecryptionAttestation decryption_attestations = 1;
|
344
|
+
*/
|
345
|
+
decryptionAttestations: DecryptionAttestation[];
|
346
|
+
};
|
347
|
+
/**
|
348
|
+
* Describes the message inco.kms.lite.v1.AttestedRevealResponse.
|
349
|
+
* Use `create(AttestedRevealResponseSchema)` to create a new message.
|
350
|
+
*/
|
351
|
+
export declare const AttestedRevealResponseSchema: GenMessage<AttestedRevealResponse>;
|
306
352
|
/**
|
307
353
|
* AttestedComputeResponse is the response type for the KmsService/AttestedCompute RPC method.
|
308
354
|
*
|
@@ -523,4 +569,16 @@ export declare const KmsService: GenService<{
|
|
523
569
|
input: typeof AttestedComputeRequestSchema;
|
524
570
|
output: typeof AttestedComputeResponseSchema;
|
525
571
|
};
|
572
|
+
/**
|
573
|
+
* AttestedReveal decrypts multiple ciphertexts and provides an attestation
|
574
|
+
* that the decryption was performed correctly.
|
575
|
+
* Doesn't require authentication if the handle is publicly revealed with the on-chain .reveal() call beforehand.
|
576
|
+
*
|
577
|
+
* @generated from rpc inco.kms.lite.v1.KmsService.AttestedReveal
|
578
|
+
*/
|
579
|
+
attestedReveal: {
|
580
|
+
methodKind: "unary";
|
581
|
+
input: typeof AttestedRevealRequestSchema;
|
582
|
+
output: typeof AttestedRevealResponseSchema;
|
583
|
+
};
|
526
584
|
}>;
|
@@ -152,8 +152,8 @@ export declare const lightningDeployments: readonly [{
|
|
152
152
|
readonly pepper: "devnet";
|
153
153
|
readonly executorAddress: "0x3B22be60Ae699933959CA3cE147C96caa88Ccd3D";
|
154
154
|
readonly salt: "0x8202d2d747784cb7d48868e44c42c4bf162a70bc00b001d6742fded0dd599ede";
|
155
|
-
readonly chainId:
|
156
|
-
readonly chainName: "
|
155
|
+
readonly chainId: 9746;
|
156
|
+
readonly chainName: "Plasma Testnet";
|
157
157
|
readonly version: {
|
158
158
|
readonly major: 0;
|
159
159
|
readonly minor: 2;
|
@@ -162,12 +162,12 @@ export declare const lightningDeployments: readonly [{
|
|
162
162
|
};
|
163
163
|
readonly decryptSigner: "0x138AcbDC1FA02b955949d8Da09E546Ea7748710f";
|
164
164
|
readonly eciesPublicKey: "0x038a582d29083c2f3fefe024bf4dd9ab913ab8973716977da5f01106e0b84095b1";
|
165
|
-
readonly blockNumber:
|
166
|
-
readonly deployDate: "2025-
|
167
|
-
readonly commit: "
|
165
|
+
readonly blockNumber: 1718868;
|
166
|
+
readonly deployDate: "2025-09-10T15:20:25.654Z";
|
167
|
+
readonly commit: "v6-7-gf96f358e-dirty";
|
168
168
|
readonly active: true;
|
169
169
|
}, {
|
170
|
-
readonly name: "
|
170
|
+
readonly name: "incoLightning_0_2_1__340846814";
|
171
171
|
readonly majorVersion: 0;
|
172
172
|
readonly deployer: "0x8202D2D747784Cb7D48868E44C42C4bf162a70BC";
|
173
173
|
readonly pepper: "devnet";
|
@@ -182,10 +182,31 @@ export declare const lightningDeployments: readonly [{
|
|
182
182
|
readonly shortSalt: "340846814";
|
183
183
|
};
|
184
184
|
readonly decryptSigner: "0x138AcbDC1FA02b955949d8Da09E546Ea7748710f";
|
185
|
-
readonly eciesPublicKey: "
|
186
|
-
readonly blockNumber:
|
187
|
-
readonly deployDate: "2025-
|
188
|
-
readonly commit: "
|
185
|
+
readonly eciesPublicKey: "0x038a582d29083c2f3fefe024bf4dd9ab913ab8973716977da5f01106e0b84095b1";
|
186
|
+
readonly blockNumber: 1717229;
|
187
|
+
readonly deployDate: "2025-09-10T14:53:07.218Z";
|
188
|
+
readonly commit: "v6-7-gf96f358e-dirty";
|
189
|
+
readonly active: true;
|
190
|
+
}, {
|
191
|
+
readonly name: "incoLightningPreview_0_2_1__340846814";
|
192
|
+
readonly majorVersion: 0;
|
193
|
+
readonly deployer: "0x8202D2D747784Cb7D48868E44C42C4bf162a70BC";
|
194
|
+
readonly pepper: "devnet";
|
195
|
+
readonly executorAddress: "0x3B22be60Ae699933959CA3cE147C96caa88Ccd3D";
|
196
|
+
readonly salt: "0x8202d2d747784cb7d48868e44c42c4bf162a70bc00b001d6742fded0dd599ede";
|
197
|
+
readonly chainId: 4801;
|
198
|
+
readonly chainName: "World Chain Sepolia";
|
199
|
+
readonly version: {
|
200
|
+
readonly major: 0;
|
201
|
+
readonly minor: 2;
|
202
|
+
readonly patch: 1;
|
203
|
+
readonly shortSalt: "340846814";
|
204
|
+
};
|
205
|
+
readonly decryptSigner: "0x138AcbDC1FA02b955949d8Da09E546Ea7748710f";
|
206
|
+
readonly eciesPublicKey: "0x038a582d29083c2f3fefe024bf4dd9ab913ab8973716977da5f01106e0b84095b1";
|
207
|
+
readonly blockNumber: 17365942;
|
208
|
+
readonly deployDate: "2025-08-15T17:35:15.208Z";
|
209
|
+
readonly commit: "v0.2.17-35-g8cca6b4e-dirty";
|
189
210
|
readonly active: true;
|
190
211
|
}, {
|
191
212
|
readonly name: "incoLightning_0_2_0__340846814";
|
@@ -1,4 +1,5 @@
|
|
1
|
-
import { type IncoLiteAttestedComputeArgs
|
2
|
-
import {
|
3
|
-
|
4
|
-
export
|
1
|
+
import { ATTESTED_COMPUTE_DOMAIN_NAME, ATTESTED_COMPUTE_DOMAIN_VERSION, type IncoLiteAttestedComputeArgs } from '../attestedcompute/attested-compute.js';
|
2
|
+
import type { AttestedCompute, AttestedComputeFnArgs, AttestedComputeSupportedOps } from '../attestedcompute/types.js';
|
3
|
+
import type { AttestedDecryptFnArgs } from '../attesteddecrypt/types.js';
|
4
|
+
export { ATTESTED_COMPUTE_DOMAIN_NAME, ATTESTED_COMPUTE_DOMAIN_VERSION };
|
5
|
+
export type { AttestedCompute, AttestedComputeFnArgs, AttestedComputeSupportedOps, AttestedDecryptFnArgs, IncoLiteAttestedComputeArgs, };
|
@@ -1,3 +1,4 @@
|
|
1
|
-
import { type IncoLiteAttestedDecryptorArgs
|
2
|
-
export { incoLiteAttestedDecryptor };
|
1
|
+
import { type IncoLiteAttestedDecryptorArgs } from '../attesteddecrypt/attested-decrypt.js';
|
3
2
|
export type { IncoLiteAttestedDecryptorArgs };
|
3
|
+
import { ATTESTED_DECRYPT_DOMAIN_NAME, ATTESTED_DECRYPT_DOMAIN_VERSION } from '../attesteddecrypt/attested-decrypt.js';
|
4
|
+
export { ATTESTED_DECRYPT_DOMAIN_NAME, ATTESTED_DECRYPT_DOMAIN_VERSION };
|
@@ -1,5 +1,8 @@
|
|
1
1
|
export * from '../generated/abis/lightning.js';
|
2
|
-
export type { KmsService, ReencryptRequest } from '../generated/es/inco/kms/lite/v1/kms_service_pb.js';
|
2
|
+
export type { AttestedComputeRequest, AttestedDecryptRequest, KmsService, ReencryptRequest, } from '../generated/es/inco/kms/lite/v1/kms_service_pb.js';
|
3
|
+
export type { HandleWithProof } from '../generated/es/inco/kms/lite/v1/types_pb.js';
|
4
|
+
export * from './attested-compute.js';
|
5
|
+
export * from './attested-decrypt.js';
|
3
6
|
export * from './deployments.js';
|
4
7
|
export * from './ecies.js';
|
5
8
|
export * from './hadu.js';
|
@@ -1,11 +1,14 @@
|
|
1
1
|
import { Account, Chain, Transport, WalletClient } from 'viem';
|
2
2
|
import { AllowanceVoucherWithSig } from '../advancedacl/types.js';
|
3
|
+
import { AttestedComputeOP } from '../attestedcompute/types.js';
|
4
|
+
import { DecryptionAttestation } from '../attesteddecrypt/index.js';
|
3
5
|
import { Address, HexString } from '../binary.js';
|
4
|
-
import { EciesScheme, PlaintextOf } from '../encryption/index.js';
|
6
|
+
import { EciesScheme, PlaintextOf, SupportedFheType } from '../encryption/index.js';
|
5
7
|
import { lightningDeployments } from '../generated/lightning.js';
|
6
8
|
import { localNodeLightningConfig } from '../generated/local-node.js';
|
7
9
|
import { LocalNodeEnv } from '../local/index.js';
|
8
10
|
import type { Reencryptor } from '../reencryption/index.js';
|
11
|
+
import { BackoffConfig } from '../retry.js';
|
9
12
|
import { Secp256k1Keypair } from './ecies.js';
|
10
13
|
type TupleToUnion<T> = T extends readonly unknown[] ? T[number] : never;
|
11
14
|
type Deployment = TupleToUnion<typeof lightningDeployments>;
|
@@ -163,7 +166,7 @@ export declare class Lightning<T extends DeploymentSlice = DeploymentSlice> {
|
|
163
166
|
* const decryptedValue = await reencryptor({handle: resultHandle});
|
164
167
|
* ```
|
165
168
|
*/
|
166
|
-
getSessionKeyRencryptor(allowanceVoucherWithSig: AllowanceVoucherWithSig, ephemeralKeypair: Secp256k1Keypair): Promise<(<T_1 extends
|
169
|
+
getSessionKeyRencryptor(allowanceVoucherWithSig: AllowanceVoucherWithSig, ephemeralKeypair: Secp256k1Keypair): Promise<(<T_1 extends SupportedFheType>({ handle }: import("../reencryption/types.js").ReencryptFnArgs<EciesScheme, T_1>) => Promise<PlaintextOf<1, 0 | 5 | 7 | 8>>)>;
|
167
170
|
/**
|
168
171
|
* Updates the active session nonce for the given wallet client.
|
169
172
|
*
|
@@ -174,6 +177,74 @@ export declare class Lightning<T extends DeploymentSlice = DeploymentSlice> {
|
|
174
177
|
* @returns The transaction hash of the updateActiveVouchersSessionNonce transaction
|
175
178
|
*/
|
176
179
|
updateActiveVouchersSessionNonce(walletClient: WalletClient<Transport, Chain, Account>): Promise<HexString>;
|
180
|
+
/**
|
181
|
+
* Get an attested decryptor for the given wallet client.
|
182
|
+
*
|
183
|
+
* @param walletClient - The wallet client used for signing the attested decrypt request
|
184
|
+
* @param handles - The handles to decrypt
|
185
|
+
* @param backoffConfig - The backoff configuration for the attested decrypt request
|
186
|
+
* @returns The decryption attestations
|
187
|
+
*
|
188
|
+
* @example
|
189
|
+
* ```typescript
|
190
|
+
* const response = await lightning.attestedDecrypt(walletClient, [handle1, handle2]);
|
191
|
+
* const { plaintext, covalidatorSignature } = response[0];
|
192
|
+
* ```
|
193
|
+
*/
|
194
|
+
attestedDecrypt(walletClient: WalletClient<Transport, Chain, Account>, handles: HexString[], backoffConfig?: Partial<BackoffConfig>): Promise<Array<DecryptionAttestation<EciesScheme, SupportedFheType>>>;
|
195
|
+
/**
|
196
|
+
* @notice Attested decryption using a session key.
|
197
|
+
* @dev This method is used when you want to perform attested decryption
|
198
|
+
* via an ephemeral session key and an allowance voucher. The session
|
199
|
+
* key setup is typically faster and more flexible than using a wallet.
|
200
|
+
*
|
201
|
+
* @param ephemeralKeypair The ephemeral Secp256k1 keypair used for secure communication.
|
202
|
+
* @param allowanceVoucherWithSig The signed allowance voucher, obtained from
|
203
|
+
* `grantSessionKeyAllowanceVoucher`, proving the session key's decryption rights.
|
204
|
+
* @param handles The encrypted handles to be decrypted.
|
205
|
+
* @param backoffConfig Optional configuration for retry and backoff strategy.
|
206
|
+
*
|
207
|
+
* @returns A promise that resolves to an array of decryption attestations.
|
208
|
+
*/
|
209
|
+
attestedDecrypt(ephemeralKeypair: Secp256k1Keypair, allowanceVoucherWithSig: AllowanceVoucherWithSig, handles: HexString[], backoffConfig?: Partial<BackoffConfig>): Promise<Array<DecryptionAttestation<EciesScheme, SupportedFheType>>>;
|
210
|
+
/**
|
211
|
+
* Get an attested compute for the given wallet client.
|
212
|
+
*
|
213
|
+
* @param walletClient - The wallet client used for signing the attested compute request
|
214
|
+
* @param lhsHandle - The handle to compute
|
215
|
+
* @param op - The operation to perform
|
216
|
+
* @param rhsPlaintext - The plaintext to compute with
|
217
|
+
* @param backoffConfig - The backoff configuration for the attested compute request
|
218
|
+
* @returns The decryption attestation
|
219
|
+
*
|
220
|
+
* @example
|
221
|
+
* ```typescript
|
222
|
+
* import { AttestedComputeSupportedOps } from '../lite/attested-compute.js';
|
223
|
+
* const lhsHandle = '0x...';
|
224
|
+
* const rhsPlaintext = 1337n;
|
225
|
+
* const op = AttestedComputeSupportedOps.Eq;
|
226
|
+
* const response = await lightning.attestedCompute(walletClient, lhsHandle, op, rhsPlaintext);
|
227
|
+
* const { plaintext, covalidatorSignature, handle } = response;
|
228
|
+
* ```
|
229
|
+
*/
|
230
|
+
attestedCompute(walletClient: WalletClient<Transport, Chain, Account>, lhsHandle: HexString, op: AttestedComputeOP, rhsPlaintext: bigint | boolean, backoffConfig?: Partial<BackoffConfig>): Promise<DecryptionAttestation<EciesScheme, SupportedFheType>>;
|
231
|
+
/**
|
232
|
+
* @notice Attested compute using a session key.
|
233
|
+
* @dev This method is used when you want to perform attested compute
|
234
|
+
* via an ephemeral session key and an allowance voucher. The session
|
235
|
+
* key setup is typically faster and more flexible than using a wallet.
|
236
|
+
*
|
237
|
+
* @param ephemeralKeypair The ephemeral Secp256k1 keypair used for secure communication.
|
238
|
+
* @param lhsHandle The handle to compute on
|
239
|
+
* @param op The operation to perform
|
240
|
+
* @param rhsPlaintext The plaintext to compute with
|
241
|
+
* @param allowanceVoucherWithSig The signed allowance voucher, obtained from
|
242
|
+
* `grantSessionKeyAllowanceVoucher`, proving the session key's compute rights.
|
243
|
+
* @param backoffConfig Optional configuration for retry and backoff strategy.
|
244
|
+
*
|
245
|
+
* @returns A promise that resolves to a compute attestation.
|
246
|
+
*/
|
247
|
+
attestedCompute(ephemeralKeypair: Secp256k1Keypair, lhsHandle: HexString, op: AttestedComputeOP, rhsPlaintext: bigint | boolean, allowanceVoucherWithSig: AllowanceVoucherWithSig, backoffConfig?: Partial<BackoffConfig>): Promise<DecryptionAttestation<EciesScheme, SupportedFheType>>;
|
177
248
|
/**
|
178
249
|
* Get the GRPC endpoint for the covalidator that services this deployment.
|
179
250
|
*/
|
@@ -19,6 +19,5 @@ export declare function incoLiteReencryptor({ kmsConnectRpcEndpointOrClient, cha
|
|
19
19
|
export declare function getKmsClient(kmsConnectRpcEndpointOrClient: string | Client<typeof KmsService>): Client<typeof KmsService>;
|
20
20
|
export declare function decryptGrpcResponse<T extends SupportedFheType>(response: ReencryptResponse, ephemeralKeypair: Secp256k1Keypair, handle: Handle): Promise<PlaintextOf<1, T>>;
|
21
21
|
export declare function defaultCovalidatorGrpc(chain: SupportedChain): string;
|
22
|
-
export declare function pulumiCovalidatorGrpc(chain: SupportedChain): string;
|
23
22
|
export declare function lightningDevnetCovalidatorGrpc(chain: SupportedChain): string;
|
24
23
|
export declare function lightningTestnetCovalidatorGrpc(chain: SupportedChain): string;
|