@ethereumjs/devp2p / rlpx/ecies / ECIES
rlpx/ecies.ECIES
- _bodySize
- _egressAes
- _egressMac
- _ephemeralPrivateKey
- _ephemeralPublicKey
- _ephemeralSharedSecret
- _gotEIP8Ack
- _gotEIP8Auth
- _ingressAes
- _ingressMac
- _initMsg
- _nonce
- _privateKey
- _publicKey
- _remoteEphemeralPublicKey
- _remoteInitMsg
- _remoteNonce
- _remotePublicKey
- _decryptMessage
- _encryptMessage
- _setupFrame
- createAckEIP8
- createAckOld
- createAuthEIP8
- createAuthNonEIP8
- createBody
- createHeader
- parseAckEIP8
- parseAckPlain
- parseAuthEIP8
- parseAuthPlain
- parseBody
- parseHeader
• new ECIES(privateKey
, id
, remoteId
)
Name | Type |
---|---|
privateKey |
Buffer |
id |
Buffer |
remoteId |
Buffer |
packages/devp2p/src/rlpx/ecies.ts:73
• _bodySize: null
| number
= null
packages/devp2p/src/rlpx/ecies.ts:73
• _egressAes: null
| Decipher
= null
packages/devp2p/src/rlpx/ecies.ts:66
• _egressMac: null
| MAC = null
packages/devp2p/src/rlpx/ecies.ts:68
• _ephemeralPrivateKey: Buffer
packages/devp2p/src/rlpx/ecies.ts:69
• _ephemeralPublicKey: Buffer
packages/devp2p/src/rlpx/ecies.ts:70
• _ephemeralSharedSecret: null
| Buffer
= null
packages/devp2p/src/rlpx/ecies.ts:72
• _gotEIP8Ack: boolean
= false
packages/devp2p/src/rlpx/ecies.ts:64
• _gotEIP8Auth: boolean
= false
packages/devp2p/src/rlpx/ecies.ts:63
• _ingressAes: null
| Decipher
= null
packages/devp2p/src/rlpx/ecies.ts:65
• _ingressMac: null
| MAC = null
packages/devp2p/src/rlpx/ecies.ts:67
• _initMsg: undefined
| null
| Buffer
= null
packages/devp2p/src/rlpx/ecies.ts:61
• _nonce: Buffer
packages/devp2p/src/rlpx/ecies.ts:59
• _privateKey: Buffer
packages/devp2p/src/rlpx/ecies.ts:56
• _publicKey: Buffer
packages/devp2p/src/rlpx/ecies.ts:57
• _remoteEphemeralPublicKey: null
| Buffer
= null
packages/devp2p/src/rlpx/ecies.ts:71
• _remoteInitMsg: null
| Buffer
= null
packages/devp2p/src/rlpx/ecies.ts:62
• _remoteNonce: null
| Buffer
= null
packages/devp2p/src/rlpx/ecies.ts:60
• _remotePublicKey: null
| Buffer
packages/devp2p/src/rlpx/ecies.ts:58
▸ _decryptMessage(data
, sharedMacData?
): Buffer
Name | Type | Default value |
---|---|---|
data |
Buffer |
undefined |
sharedMacData |
null | Buffer |
null |
Buffer
packages/devp2p/src/rlpx/ecies.ts:112
▸ _encryptMessage(data
, sharedMacData?
): undefined
| Buffer
Name | Type | Default value |
---|---|---|
data |
Buffer |
undefined |
sharedMacData |
null | Buffer |
null |
undefined
| Buffer
packages/devp2p/src/rlpx/ecies.ts:85
▸ _setupFrame(remoteData
, incoming
): void
Name | Type |
---|---|
remoteData |
Buffer |
incoming |
boolean |
void
packages/devp2p/src/rlpx/ecies.ts:147
▸ createAckEIP8(): undefined
| Buffer
undefined
| Buffer
packages/devp2p/src/rlpx/ecies.ts:269
▸ createAckOld(): undefined
| Buffer
undefined
| Buffer
packages/devp2p/src/rlpx/ecies.ts:286
▸ createAuthEIP8(): undefined
| Buffer
undefined
| Buffer
packages/devp2p/src/rlpx/ecies.ts:171
▸ createAuthNonEIP8(): undefined
| Buffer
undefined
| Buffer
packages/devp2p/src/rlpx/ecies.ts:194
▸ createBody(data
): undefined
| Buffer
Name | Type |
---|---|
data |
Buffer |
undefined
| Buffer
packages/devp2p/src/rlpx/ecies.ts:363
▸ createHeader(size
): undefined
| Buffer
Name | Type |
---|---|
size |
number |
undefined
| Buffer
packages/devp2p/src/rlpx/ecies.ts:333
▸ parseAckEIP8(data
): void
Name | Type |
---|---|
data |
Buffer |
void
packages/devp2p/src/rlpx/ecies.ts:326
▸ parseAckPlain(data
, sharedMacData?
): void
Name | Type | Default value |
---|---|---|
data |
Buffer |
undefined |
sharedMacData |
null | Buffer |
null |
void
packages/devp2p/src/rlpx/ecies.ts:296
▸ parseAuthEIP8(data
): void
Name | Type |
---|---|
data |
Buffer |
void
packages/devp2p/src/rlpx/ecies.ts:263
▸ parseAuthPlain(data
, sharedMacData?
): undefined
| Buffer
Name | Type | Default value |
---|---|---|
data |
Buffer |
undefined |
sharedMacData |
null | Buffer |
null |
undefined
| Buffer
packages/devp2p/src/rlpx/ecies.ts:211
▸ parseBody(data
): undefined
| Buffer
Name | Type |
---|---|
data |
Buffer |
undefined
| Buffer
packages/devp2p/src/rlpx/ecies.ts:374
▸ parseHeader(data
): undefined
| number
Name | Type |
---|---|
data |
Buffer |
undefined
| number