Files
lamport/sdk/abis/LamportOptimized.json
zeekay e3dfe3fa18 feat(sdk): add TypeScript SDK and enhanced LaTeX paper
SDK (@luxfi/lamport):
- Key generation: generateKeyPair(), generateKeyChain()
- Signing: sign(), signWithRotation()
- Verification: verify(), computePKH(), computeMessage()
- Threshold: generateKeyShares(), createSigningSession(), combineSignatures()
- Safe integration: prepareSafeTransaction()
- Contract ABIs: LamportVerifier, LamportSafe, LamportThreshold, LamportOptimized
- Solidity contracts included for direct import

Paper (v1.0.0):
- Added historical context (Lamport 1979 → NIST 2024)
- Updated gas benchmarks from actual tests
- Added threshold architecture section
- Comprehensive security theorems and proofs
- NIST PQC comparison table
- 10 bibliography references
- Table of contents and appendices

Ready for npm publish: pnpm publish --access public
2025-12-25 21:03:31 -08:00

109 lines
2.0 KiB
JSON

[
{
"type": "function",
"name": "computePKH",
"inputs": [
{
"name": "pub",
"type": "bytes32[2][256]",
"internalType": "bytes32[2][256]"
}
],
"outputs": [
{
"name": "pkh",
"type": "bytes32",
"internalType": "bytes32"
}
],
"stateMutability": "pure"
},
{
"type": "function",
"name": "verify",
"inputs": [
{
"name": "bits",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "sig",
"type": "bytes32[256]",
"internalType": "bytes32[256]"
},
{
"name": "pub",
"type": "bytes32[2][256]",
"internalType": "bytes32[2][256]"
}
],
"outputs": [
{
"name": "valid",
"type": "bool",
"internalType": "bool"
}
],
"stateMutability": "pure"
},
{
"type": "function",
"name": "verifyConstantTime",
"inputs": [
{
"name": "bits",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "sig",
"type": "bytes32[256]",
"internalType": "bytes32[256]"
},
{
"name": "pub",
"type": "bytes32[2][256]",
"internalType": "bytes32[2][256]"
}
],
"outputs": [
{
"name": "valid",
"type": "bool",
"internalType": "bool"
}
],
"stateMutability": "pure"
},
{
"type": "function",
"name": "verifyUnrolled",
"inputs": [
{
"name": "bits",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "sig",
"type": "bytes32[256]",
"internalType": "bytes32[256]"
},
{
"name": "pub",
"type": "bytes32[2][256]",
"internalType": "bytes32[2][256]"
}
],
"outputs": [
{
"name": "valid",
"type": "bool",
"internalType": "bool"
}
],
"stateMutability": "pure"
}
]