Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/IoTChainCode/itc-ts
/ functions
Functions
370 in github.com/IoTChainCode/itc-ts
⨍
Functions
370
◇
Types & classes
91
↓ 1 callers
Method
readWitnesses
()
src/models/MyWitnesses.ts:6
↓ 1 callers
Method
rejectAll
(error?: any)
src/network/WebSocketClient.ts:52
↓ 1 callers
Method
replaceTemplate
(templates: any[], params: any)
src/core/definition.ts:4
↓ 1 callers
Method
reset
* Resets to initial state.
src/common/ControlledPromise.ts:97
↓ 1 callers
Method
resolve
* Resolves pending promise with specified `value`.
src/common/ControlledPromise.ts:79
↓ 1 callers
Method
save
(address: Address, wallet: Base64, isChange: number, addressIndex: number, definition: any[])
src/models/MyAddresses.ts:78
↓ 1 callers
Function
sendMailThroughUnixSendMail
(from: string, to: string, subject: string, body: string)
src/common/mail.ts:7
↓ 1 callers
Method
sendMessageToDevice
(to: Address, subject: string, body: any)
src/core/device.ts:74
↓ 1 callers
Method
sendPayment
(to: Address, amount: number, witnesses?: Address[])
src/api/api.ts:19
↓ 1 callers
Function
separateIntoCleanDataAndChecksum
(bin: string)
src/common/checksum_hash.ts:48
↓ 1 callers
Function
sha256B64
(data: string | Buffer)
src/common/hash.ts:11
↓ 1 callers
Method
signWithLocalPrivateKey
( wallet: string, account: number, isChange: number, addressIndex: number,
src/core/signer.ts:13
↓ 1 callers
Method
start
()
src/witness/witness.ts:60
↓ 1 callers
Function
trimParentList
(parentUnits: Base64[], witnesses: Address[])
src/core/composeParent.ts:45
↓ 1 callers
Function
updateLatestIncludedMcIndex
(lastMCI: number, rebuiltMc: boolean)
src/core/main_chain.ts:127
↓ 1 callers
Function
updateMC
()
src/core/main_chain.ts:117
↓ 1 callers
Function
updateStableMcFlag
()
src/core/main_chain.ts:235
↓ 1 callers
Function
validatePaymentInputsAndOutputs
(payload: Payload, messageIndex: number, unit: Unit)
src/core/validation.ts:114
↓ 1 callers
Method
verify
(hash: string, signature: Base64, pubKey: PubKey)
src/common/Signature.ts:16
↓ 1 callers
Method
verifySigned
(signed: ISigned, signature: Base64)
src/common/Signature.ts:25
Method
addListener
(event: K, listener: Listener<T[K]>)
src/events/eventbus.ts:6
Method
all
(sql: string, ...params)
src/storage/sqlstore.ts:32
Method
all
()
src/models/XPubKeys.ts:9
Method
all
()
src/models/Messages.ts:96
Function
calcEarnings
(type: string, fromMCI: number, toMCI: number, address: Address)
src/core/mc_outputs.ts:69
Function
calcHeadersCommissions
()
src/core/headers_commission.ts:7
Function
calcWitnessEarnings
(type: string, fromMCI: number, toMCI: number, address: Address)
src/core/payload_commission.ts:5
Function
checkNoSameAddressInDifferentParents
()
src/core/validation.ts:14
Function
cleanNulls
(obj: any)
src/common/object_hash.ts:97
Method
close
()
src/network/WebSocketClient.ts:165
Method
close
()
src/network/WebSocketServer.ts:24
Function
compareUnits
(unit1: Base64, unit2: Base64)
src/core/graph.ts:6
Method
connect
(ws?: string | WebSocketClient)
src/network/Peer.ts:57
Method
constructor
(readonly port: number, readonly ipv4?: string, readonly ipv6?: string)
src/network/SocketAddr.ts:7
Method
constructor
()
src/network/WebSocketClient.ts:35
Method
constructor
(ws: string | WebSocket, req?: http.IncomingMessage)
src/network/WebSocketClient.ts:75
Method
constructor
()
src/network/WebSocketServer.ts:20
Method
constructor
()
src/network/Peer.ts:26
Method
constructor
( readonly address: Address, readonly authentifiers: Authentifiers, readonly definitio
src/core/author.ts:7
Method
constructor
( readonly parentUnits: Base64[], readonly lastBall: Base64, readonly lastBallUnit: Ba
src/core/unit.ts:45
Method
constructor
(privateKey?: DevicePrivKey)
src/core/device.ts:28
Method
constructor
(readonly xPrivKey)
src/core/signer.ts:10
Method
constructor
( readonly address: Address, readonly amount: number, )
src/core/message.ts:32
Method
constructor
( readonly app: string, readonly payloadLocation: string, inputs: Input[], out
src/core/message.ts:48
Method
constructor
()
src/storage/kvstore.ts:15
Method
constructor
(readonly str: string)
src/events/eventbus.test.ts:4
Method
constructor
(readonly num: number)
src/events/eventbus.test.ts:8
Method
constructor
(readonly wallet: Wallet, readonly address: Address, readonly peer: Peer)
src/api/api.ts:8
Method
constructor
(readonly wallet: Wallet)
src/witness/witness.ts:57
Method
constructor
(readonly xPrivKey, readonly mnemonic: string)
src/common/HDKey.ts:14
Method
constructor
( readonly wallet: Base64, readonly key: HDKey, )
src/wallets/wallet.ts:18
Function
decode
(encoded: string | Buffer)
src/common/base32.ts:60
Method
decryptPackage
(encrypted: EncryptedPackage, pubKey: PubKey, privateKey: DevicePrivKey)
src/common/encrypt.ts:17
Method
decryptPackage
(encrypted: EncryptedPackage, pubKey: PubKey, privateKey: DevicePrivKey)
src/common/encrypt.ts:62
Method
del
(key: any)
src/storage/kvstore.ts:27
Function
deriveAddress
(pubKey: PubKey)
src/common/address.ts:3
Method
deriveBIP44
(type: number, account: number, change: number, addressIndex: number)
src/common/HDKey.ts:29
Method
derivePublicKey
(isChange: number, addressIndex: number)
src/common/HDKey.ts:36
Function
deserializeMerkleProof
(serializedProof: string)
src/common/merkle.ts:61
Function
determineIfIncludedOrEqual
(earlierUnit: Base64, laterUnits: Base64[])
src/core/graph.ts:172
Function
determineIfStableInLaterUnits
(earlierUnit: string, laterUnits: any[])
src/core/main_chain.ts:11
Method
deviceHub
()
src/core/device.ts:61
Method
emit
(event: K, arg: T[K])
src/events/eventbus.ts:90
Function
encode
(plain: string | Buffer)
src/common/base32.ts:20
Method
encryptMessage
(obj: any, pubKey: PubKey)
src/common/encrypt.ts:27
Method
ephemeralPrivateKey
()
src/core/device.ts:45
Method
ephemeralPubKey
()
src/core/device.ts:49
Method
eventNames
()
src/events/eventbus.ts:26
Method
eventNames
()
src/events/eventbus.ts:109
Method
exec
(sql: string)
src/storage/sqlstore.ts:42
Method
findLastBallMciOfMci
(mci: number)
src/models/MainChain.ts:17
Function
findMcIndexIntervalToTargetAmount
(type: string, address: Address, maxMCI: number, targetAmount: number)
src/core/mc_outputs.ts:20
Method
get
(sql: string, ...params)
src/storage/sqlstore.ts:27
Method
get
(key: any)
src/storage/kvstore.ts:23
Function
getBallHash
(unit: any, arrParentBalls: any, arrSkiplistBalls: any, bNonserial: any)
src/common/object_hash.ts:78
Function
getChash288
(obj: any)
src/common/object_hash.ts:12
Function
getChash288
(data: string)
src/common/checksum_hash.ts:148
Function
getDeviceMessageHashToSign
(objDeviceMessage: any)
src/common/object_hash.ts:109
Function
getHeadersSize
(unit: Unit)
src/common/object_length.ts:5
Method
getMaxListeners
()
src/events/eventbus.ts:18
Method
getMaxListeners
()
src/events/eventbus.ts:82
Function
getMaxSpendableMciForLastBallMci
(lastBallMCI: number)
src/core/headers_commission.ts:106
Function
getMaxSpendableMciForLastBallMci
(lastBallMCI: number)
src/core/payload_commission.ts:19
Function
getMerkleProof
(elements: any[], elementIndex: number)
src/common/merkle.ts:22
Function
getMerkleRoot
(elements: any[])
src/common/merkle.ts:9
Function
getObjHashHex
(obj: any)
src/common/object_hash.ts:20
Function
getPackageJsonDir
(startDir: string)
src/common/desktop.ts:22
Function
getTotalPayloadSize
(unit: Unit)
src/common/object_length.ts:20
Function
getUnitHash
(unit: Unit)
src/common/object_hash.ts:50
Function
getUnitHashToSign
(objUnit: any)
src/common/object_hash.ts:73
Method
getUnixTimestamp
(date: string)
src/storage/sqlstore.ts:51
Method
getWitnesses
(ws: string | WebSocketClient)
src/network/Peer.ts:129
Method
handleGetWitnesses
(ws: WebSocketClient, id: string)
src/network/Peer.ts:235
Function
isArrayOfLength
(arr: any[], len: number)
src/common/validation_utils.ts:70
Method
isCalled
* Returns true if promise already called via `.call()` method.
src/common/ControlledPromise.ts:58
Function
isChashValid
(encoded: string)
src/common/checksum_hash.ts:156
Method
isClosed
()
src/network/WebSocketClient.ts:119
Method
isClosing
()
src/network/WebSocketClient.ts:115
Method
isFulfilled
* Returns true if promise is fulfilled.
src/common/ControlledPromise.ts:37
Function
isGenesisBall
(ball: Base64)
src/core/genesis.ts:13
← previous
next →
201–300 of 370, ranked by callers