@ethereumjs/devp2p
Ƭ DNSOptions: Object
Name | Type | Description |
---|---|---|
dnsServerAddress? |
string |
ipv4 or ipv6 address of server to pass to native dns.setServers() Sets the IP address of servers to be used when performing DNS resolution. |
packages/devp2p/src/types.ts:32
Ƭ SendMethod: (code
: number
, data
: Uint8Array
) => any
▸ (code
, data
): any
Name | Type |
---|---|
code |
number |
data |
Uint8Array |
any
packages/devp2p/src/types.ts:212
• Const
DEFAULT_ANNOUNCE_TYPE: 1
packages/devp2p/src/protocol/les.ts:21
▸ assertEq(expected
, actual
, msg
, debug
, messageName?
): void
Name | Type |
---|---|
expected |
assertInput |
actual |
assertInput |
msg |
string |
debug |
Function |
messageName? |
string |
void
packages/devp2p/src/util.ts:51
▸ createDeferred<T
>(): Deferred
<T
>
Name |
---|
T |
Deferred
<T
>
packages/devp2p/src/util.ts:112
▸ decode(bytes
): Object
Name | Type |
---|---|
bytes |
Uint8Array |
Object
Name | Type |
---|---|
data |
any |
publicKey |
Uint8Array |
typename |
string | number |
packages/devp2p/src/dpt/message.ts:190
▸ devp2pDebug(formatter
, …args
): void
Name | Type |
---|---|
formatter |
any |
...args |
any [] |
void
node_modules/@types/debug/index.d.ts:51
▸ encode<T
>(typename
, data
, privateKey
): Uint8Array
Name |
---|
T |
Name | Type |
---|---|
typename |
string |
data |
T |
privateKey |
Uint8Array |
Uint8Array
packages/devp2p/src/dpt/message.ts:177
▸ formatLogData(data
, verbose
): string
Name | Type |
---|---|
data |
string |
verbose |
boolean |
string
packages/devp2p/src/util.ts:91
▸ formatLogId(id
, verbose
): string
Name | Type |
---|---|
id |
string |
verbose |
boolean |
string
packages/devp2p/src/util.ts:82
▸ genPrivateKey(): Uint8Array
Uint8Array
packages/devp2p/src/util.ts:19
▸ id2pk(id
): Uint8Array
Name | Type |
---|---|
id |
Uint8Array |
Uint8Array
packages/devp2p/src/util.ts:31
▸ ipToBytes(ip
, bytes?
, offset?
): Uint8Array
Name | Type | Default value |
---|---|---|
ip |
string |
undefined |
bytes? |
Uint8Array |
undefined |
offset |
number |
0 |
Uint8Array
packages/devp2p/src/util.ts:167
▸ ipToString(bytes
, offset?
, length?
): string
Name | Type |
---|---|
bytes |
Uint8Array |
offset? |
number |
length? |
number |
string
packages/devp2p/src/util.ts:131
▸ isV4Format(ip
): boolean
Name | Type |
---|---|
ip |
string |
boolean
packages/devp2p/src/util.ts:159
▸ isV6Format(ip
): boolean
Name | Type |
---|---|
ip |
string |
boolean
packages/devp2p/src/util.ts:163
▸ keccak256(…bytes
): Uint8Array
Name | Type |
---|---|
...bytes |
Uint8Array [] |
Uint8Array
packages/devp2p/src/util.ts:14
▸ pk2id(pk
): Uint8Array
Name | Type |
---|---|
pk |
Uint8Array |
Uint8Array
packages/devp2p/src/util.ts:24
▸ toNewUint8Array(buf
): Uint8Array
Name | Type |
---|---|
buf |
Uint8Array |
Uint8Array
packages/devp2p/src/util.ts:123
▸ unstrictDecode(value
): Uint8Array
| NestedUint8Array
Name | Type |
---|---|
value |
Uint8Array |
Uint8Array
| NestedUint8Array
packages/devp2p/src/util.ts:116
▸ xor(a
, b
): Uint8Array
Name | Type |
---|---|
a |
Uint8Array |
b |
any |
Uint8Array
packages/devp2p/src/util.ts:42
▸ zfill(bytes
, size
, leftpad?
): Uint8Array
Name | Type | Default value |
---|---|---|
bytes |
Uint8Array |
undefined |
size |
number |
undefined |
leftpad |
boolean |
true |
Uint8Array