Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/0xEigenLabs/eigen-secret
/ functions
Functions
307 in github.com/0xEigenLabs/eigen-secret
⨍
Functions
307
◇
Types & classes
75
↓ 85 callers
Method
toString
()
core/lib/transaction.ts:18
↓ 59 callers
Method
serialize
(proofAndPublicSignals: any)
core/lib/prover.ts:225
↓ 42 callers
Function
errResp
(errno: ErrCode, message: string)
core/lib/error.ts:9
↓ 32 callers
Function
succResp
(data: any, hasBigInt: boolean = false)
core/lib/error.ts:2
↓ 32 callers
Method
toCircuitInput
(babyJub: any)
core/lib/note.ts:44
↓ 29 callers
Method
send
* Creates proof for sending an asset from the sender to the receiver in L2. * @param {Context} ctx * @param {string} receiver The receiver a
core/lib/sdk.ts:752
↓ 23 callers
Function
signEOASignature
( EOAAccount: any, rawMessage: string, ethAddress: string, timestamp: string )
core/lib/utils.ts:180
↓ 20 callers
Method
update
(_key: bigint, _newValue: bigint, transaction:any)
core/lib/smt.ts:49
↓ 18 callers
Method
deserialize
(serialized: string)
core/lib/context.ts:24
↓ 17 callers
Method
deploy
()
test/rollup.helper.ts:140
↓ 16 callers
Method
get
(key: any)
core/lib/state_tree.ts:88
↓ 16 callers
Method
updateStateTree
( ctx: Context, outputNc1: bigint, nullifier1: bigint, outputNc2: bigint,
core/lib/sdk.ts:221
↓ 14 callers
Method
check
()
core/lib/context.ts:39
↓ 14 callers
Method
initSDKFromAccount
* Initializes the SDK from either an existing account or no account. * @param {Context} ctx * @param {string} serverAddr The address of the
core/lib/sdk.ts:159
↓ 12 callers
Method
curl
(resource: string, params: any)
core/lib/sdk.ts:70
↓ 12 callers
Method
init
()
core/lib/prover.ts:40
↓ 12 callers
Method
insert
(_key: bigint, _value: bigint, transaction: any)
core/lib/smt.ts:184
↓ 12 callers
Function
prepareJson
(data: any)
core/lib/utils.ts:200
↓ 11 callers
Method
commit
(ctx: Context)
core/lib/sdk.ts:268
↓ 11 callers
Method
updateState
(circuitPath: string, input: any)
core/lib/prover.ts:71
↓ 10 callers
Method
find
(_key: bigint, transaction: any)
core/lib/smt.ts:266
↓ 9 callers
Method
compress
(babyJub: any)
core/lib/note.ts:55
↓ 9 callers
Method
createJoinSplitInput
( eddsa: any, accountKey: SigningKey, signingKey: SigningKey, acStateKey: bigi
core/lib/update_state.ts:175
↓ 7 callers
Function
pad
(_sib: any)
core/lib/state_tree.ts:12
↓ 7 callers
Function
siblingsPad
(siblings: any, F: any, padding: boolean = true)
core/lib/state_tree.ts:4
↓ 7 callers
Method
update
(i: number, proofAndPublicSignal: any)
test/rollup.helper.ts:189
↓ 7 callers
Method
verify
()
aggregation/src/aggregation_prover.ts:112
↓ 6 callers
Function
calcAliasHash
(eddsa: any, alias: string)
core/lib/digest.ts:4
↓ 6 callers
Method
createAccountInput
( eddsa: any, proofId: number, accountKey: SigningKey, signingKey: SigningKey,
core/lib/update_state.ts:128
↓ 6 callers
Method
createProofInput
( eddsa: any, proofId: number, accountKey: SigningKey, signingKey: SigningKey,
core/lib/account.ts:288
↓ 6 callers
Method
encryptNote
()
core/lib/transaction.ts:61
↓ 6 callers
Method
encryptTx
(sender: SigningKey, amount: bigint)
core/lib/transaction.ts:74
↓ 6 callers
Method
exportVerificationKey
()
aggregation/src/aggregation_prover.ts:50
↓ 6 callers
Method
getAndDecryptNote
* Retrieve all current user's unspent notes. * @param {Context} ctx * @param {Array<NoteState>} noteState: Get current user's adopted notes
core/lib/sdk.ts:556
↓ 6 callers
Method
getTokenInfo
(token: string)
core/lib/sdk.ts:1105
↓ 6 callers
Function
index
()
core/lib/utils.ts:10
↓ 6 callers
Method
owner
(babyJub: any)
core/lib/note.ts:38
↓ 6 callers
Function
pathJoin
(parts: Array<string>, sep="/")
core/lib/utils.ts:216
↓ 5 callers
Method
_splitBits
(_key: any)
core/lib/smt.ts:40
↓ 5 callers
Function
deployPoseidons
( ethers: any, deployer: SignerWithAddress, poseidonSizeParams: number[] )
core/lib/deploy_poseidons.util.ts:18
↓ 5 callers
Method
getRegisteredToken
(id: number)
core/lib/sdk.ts:1151
↓ 5 callers
Function
hasValue
(variable: any)
core/lib/utils.ts:206
↓ 5 callers
Function
rawCompress
( npk: bigint[], spk: bigint[], aliasHash: bigint)
core/lib/account.ts:114
↓ 4 callers
Method
addNotes
(encryptedNotes: any)
core/lib/sdk.ts:254
↓ 4 callers
Method
calculateNullifier
(eddsa: any, nc: bigint, inputNoteInUse: bigint, nk: SigningKey)
core/lib/join_split.ts:367
↓ 4 callers
Method
calculateWTNSBin
(input, sanityCheck)
circuits/main_update_state_js/witness_calculator.js:208
↓ 4 callers
Method
decrypt
(_cipherData: string, key: any)
core/lib/note.ts:87
↓ 4 callers
Function
decryptNotes
(accountKey: SigningKey, encryptedNotes: any, skipZeroNote: boolean = true)
core/lib/account.ts:390
↓ 4 callers
Method
encrypt
(key: any)
core/lib/note.ts:72
↓ 4 callers
Method
encrypt
(text: any)
core/lib/aes_gcm.ts:21
↓ 4 callers
Method
formatValue
(_ctx: Context, value: string | bigint, decimals: number = 18)
core/lib/sdk.ts:1131
↓ 4 callers
Method
getAllBalance
* Obtain user balance. * @param {Context} ctx * @return {Promise<AppResp>} An `AppResp` object with `data` property of type 'Map' which cont
core/lib/sdk.ts:484
↓ 4 callers
Function
parseProof
(proof: any)
core/lib/utils.ts:154
↓ 4 callers
Method
parseValue
(_ctx: Context, value: string, decimals: number = 18)
core/lib/sdk.ts:1127
↓ 4 callers
Function
poseidonSponge
( values: bigint[] )
core/lib/sponge_poseidon.ts:3
↓ 4 callers
Method
root
()
core/lib/state_tree.ts:163
↓ 4 callers
Method
toCircuitInput
(babyJub: any, proof: any)
core/lib/join_split.ts:40
↓ 4 callers
Function
uint8Array2Bigint
(x: Uint8Array)
core/lib/utils.ts:139
↓ 4 callers
Method
update
()
docs/assets/main.js:4
↓ 3 callers
Function
G
(t,e)
docs/assets/main.js:3
↓ 3 callers
Function
K
(t)
docs/assets/main.js:3
↓ 3 callers
Method
_doCalculateWitness
(input, sanityCheck)
circuits/main_update_state_js/witness_calculator.js:131
↓ 3 callers
Method
_key2str
(k: any)
core/lib/state_tree.ts:65
↓ 3 callers
Method
_normalize
(n: any, join: boolean = true)
core/lib/state_tree.ts:70
↓ 3 callers
Method
approve
(token: string, value: bigint)
core/lib/sdk.ts:1135
↓ 3 callers
Method
createTx
(txData: string, proofAndPublicSignals: any, operation: string)
core/lib/sdk.ts:258
↓ 3 callers
Method
decrypt
(cipherData_: string)
core/lib/aes_gcm.ts:39
↓ 3 callers
Function
deploySpongePoseidon
(ethers: any, poseidon6ContractAddress: string)
core/lib/deploy_poseidons.util.ts:5
↓ 3 callers
Method
ensureFocusedElementVisible
()
docs/assets/main.js:3
↓ 3 callers
Method
fetchRemoteFile
(url: string)
core/lib/prover.ts:66
↓ 3 callers
Function
fromArray32
(arr)
circuits/main_update_state_js/witness_calculator.js:294
↓ 3 callers
Method
multiDel
(dels: any)
core/lib/state_tree.ts:126
↓ 3 callers
Method
multiIns
(inserts: any)
core/lib/state_tree.ts:111
↓ 3 callers
Method
setActive
(r)
docs/assets/main.js:3
↓ 3 callers
Method
setRoot
(rt: any)
core/lib/state_tree.ts:107
↓ 3 callers
Method
submitProofs
(ctx: Context, proofs: any)
core/lib/sdk.ts:368
↓ 3 callers
Method
toNonMembershipUpdateInput
(tree: any)
core/lib/state_tree.ts:32
↓ 3 callers
Method
verifyState
(circuitPath: string, proofAndPublicSignals: any)
core/lib/prover.ts:79
↓ 3 callers
Method
withdraw
(i: number, receiverI: number, txInfo: any, proofAndPublicSignal: any)
test/rollup.helper.ts:207
↓ 2 callers
Method
approveToken
* register testToken to rollup contract * @param {string} token
core/lib/sdk.ts:1098
↓ 2 callers
Function
bitArray2Buffer
(a: Array<number>)
core/lib/utils.ts:39
↓ 2 callers
Method
calculateSignature
( accountKey: SigningKey, nf1: bigint, nf2: bigint, outputNc1: bigint, outputNc2: bigi
core/lib/join_split.ts:350
↓ 2 callers
Function
createAccountForUser
(user:any, alias:string, password:any)
tasks/account.ts:16
↓ 2 callers
Method
curlEx
(serverAddr: string, resource: string, params: any)
core/lib/sdk.ts:74
↓ 2 callers
Method
decryptTx
(content: String, sender: SigningKey)
core/lib/transaction.ts:90
↓ 2 callers
Method
deposit
(index: number, assetId: number, value: bigint, nonce: number, keysFound: bigint[], valuesFound: bigint[], sib
test/rollup.helper.ts:169
↓ 2 callers
Method
fetchTransaction
(ctx: Context, options: any)
core/lib/sdk.ts:288
↓ 2 callers
Function
getAccountInternal
(alias: string, ethAddress: string)
server/lib/account.ts:59
↓ 2 callers
Method
getAssetInfo
* Fetch registered token list from server * @param {Context} ctx * @param {Object} assetInfo * @return {Map<string, Map>} token symbol
core/lib/sdk.ts:426
↓ 2 callers
Function
getBalanceForUser
(ethers: any, user: any, alias: string, password: string, assetId: number, expectedL2Balance: string)
tasks/transaction.ts:121
↓ 2 callers
Method
getInstance
()
server/lib/state_tree.ts:13
↓ 2 callers
Method
getKey
(salt: Buffer)
core/lib/aes_gcm.ts:16
↓ 2 callers
Function
getMessage
()
circuits/main_update_state_js/witness_calculator.js:81
↓ 2 callers
Function
getTokenInfoByAddress
(contractAddress: any)
server/lib/asset.ts:36
↓ 2 callers
Function
le
(t,e)
docs/assets/main.js:3
↓ 2 callers
Method
registerToken
* register testToken to rollup contract * @param {string} token
core/lib/sdk.ts:1090
↓ 2 callers
Function
runDepositTask
(alias: string, assetId: number, password: string, value: any, user:any)
tasks/transaction.ts:14
↓ 2 callers
Function
runSendTask
(alias: string, assetId: number, password: string, value: any, user:any, receiver:any, receiverAlias: string)
tasks/transaction.ts:57
↓ 2 callers
Function
runWithdrawTask
(alias: string, assetId: number, password: string, value: any, user:any)
tasks/transaction.ts:90
↓ 2 callers
Method
setLocalStorage
(r)
docs/assets/main.js:4
next →
1–100 of 307, ranked by callers