mirror of https://github.com/status-im/nim-eth.git
result -> results
This commit is contained in:
parent
0b110f3287
commit
ec1492a65a
|
@ -10,9 +10,9 @@
|
||||||
{.push raises: [Defect].}
|
{.push raises: [Defect].}
|
||||||
|
|
||||||
import nimcrypto/[bcmode, hmac, rijndael, pbkdf2, sha2, sysrand, utils, keccak],
|
import nimcrypto/[bcmode, hmac, rijndael, pbkdf2, sha2, sysrand, utils, keccak],
|
||||||
eth/keys, json, uuid, strutils, stew/result
|
eth/keys, json, uuid, strutils, stew/results
|
||||||
|
|
||||||
export result
|
export results
|
||||||
|
|
||||||
const
|
const
|
||||||
# Version 3 constants
|
# Version 3 constants
|
||||||
|
|
|
@ -18,11 +18,11 @@
|
||||||
|
|
||||||
{.push raises: [Defect].}
|
{.push raises: [Defect].}
|
||||||
|
|
||||||
import stew/[byteutils, endians2, result]
|
import stew/[byteutils, endians2, results]
|
||||||
|
|
||||||
from nimcrypto import stripSpaces
|
from nimcrypto import stripSpaces
|
||||||
|
|
||||||
export result
|
export results
|
||||||
|
|
||||||
type
|
type
|
||||||
UUID* = object
|
UUID* = object
|
||||||
|
|
|
@ -16,11 +16,11 @@
|
||||||
|
|
||||||
import
|
import
|
||||||
nimcrypto/hash, nimcrypto/keccak, ./keys/secp,
|
nimcrypto/hash, nimcrypto/keccak, ./keys/secp,
|
||||||
stew/[byteutils, objects, result], strformat
|
stew/[byteutils, objects, results], strformat
|
||||||
|
|
||||||
from nimcrypto/utils import burnMem
|
from nimcrypto/utils import burnMem
|
||||||
|
|
||||||
export secp, result
|
export secp, results
|
||||||
|
|
||||||
const
|
const
|
||||||
KeyLength* = SkEcdhRawSecretSize - 1
|
KeyLength* = SkEcdhRawSecretSize - 1
|
||||||
|
|
|
@ -12,12 +12,12 @@
|
||||||
import
|
import
|
||||||
strformat,
|
strformat,
|
||||||
secp256k1,
|
secp256k1,
|
||||||
stew/[byteutils, objects, result],
|
stew/[byteutils, objects, results],
|
||||||
nimcrypto/[hash, sysrand]
|
nimcrypto/[hash, sysrand]
|
||||||
|
|
||||||
from nimcrypto/utils import burnMem
|
from nimcrypto/utils import burnMem
|
||||||
|
|
||||||
export result
|
export results
|
||||||
|
|
||||||
# Implementation notes
|
# Implementation notes
|
||||||
#
|
#
|
||||||
|
@ -93,7 +93,7 @@ type
|
||||||
# (`y` is 0x02 when pubkey.y is even or 0x03 when odd)
|
# (`y` is 0x02 when pubkey.y is even or 0x03 when odd)
|
||||||
data*: array[SkEcdhRawSecretSize, byte]
|
data*: array[SkEcdhRawSecretSize, byte]
|
||||||
|
|
||||||
SkResult*[T] = result.Result[T, cstring]
|
SkResult*[T] = Result[T, cstring]
|
||||||
|
|
||||||
##
|
##
|
||||||
## Private procedures interface
|
## Private procedures interface
|
||||||
|
|
|
@ -8,7 +8,7 @@
|
||||||
|
|
||||||
import
|
import
|
||||||
options, os, strutils, times,
|
options, os, strutils, times,
|
||||||
stew/result, nat_traversal/[miniupnpc, natpmp],
|
stew/results, nat_traversal/[miniupnpc, natpmp],
|
||||||
chronicles, json_serialization/std/net
|
chronicles, json_serialization/std/net
|
||||||
|
|
||||||
type
|
type
|
||||||
|
|
|
@ -14,9 +14,9 @@
|
||||||
|
|
||||||
import eth/[keys, rlp], nimcrypto
|
import eth/[keys, rlp], nimcrypto
|
||||||
import ecies
|
import ecies
|
||||||
import stew/[byteutils, endians2, result]
|
import stew/[byteutils, endians2, results]
|
||||||
|
|
||||||
export result
|
export results
|
||||||
|
|
||||||
const
|
const
|
||||||
SupportedRlpxVersion* = 4'u8
|
SupportedRlpxVersion* = 4'u8
|
||||||
|
|
|
@ -13,10 +13,10 @@ import
|
||||||
chronos, stint, nimcrypto, chronicles,
|
chronos, stint, nimcrypto, chronicles,
|
||||||
eth/[keys, rlp],
|
eth/[keys, rlp],
|
||||||
kademlia, enode,
|
kademlia, enode,
|
||||||
stew/result
|
stew/results
|
||||||
|
|
||||||
export
|
export
|
||||||
Node, result
|
Node, results
|
||||||
|
|
||||||
logScope:
|
logScope:
|
||||||
topics = "discovery"
|
topics = "discovery"
|
||||||
|
|
|
@ -13,9 +13,9 @@
|
||||||
{.push raises: [Defect].}
|
{.push raises: [Defect].}
|
||||||
|
|
||||||
import eth/keys, nimcrypto/[rijndael, bcmode, hash, hmac, sysrand, sha2, utils]
|
import eth/keys, nimcrypto/[rijndael, bcmode, hash, hmac, sysrand, sha2, utils]
|
||||||
import stew/result
|
import stew/results
|
||||||
|
|
||||||
export result
|
export results
|
||||||
|
|
||||||
const
|
const
|
||||||
emptyMac* = array[0, byte]([])
|
emptyMac* = array[0, byte]([])
|
||||||
|
|
|
@ -12,10 +12,10 @@
|
||||||
|
|
||||||
{.push raises: [Defect].}
|
{.push raises: [Defect].}
|
||||||
|
|
||||||
import stew/ranges/stackarrays, eth/rlp/types, nimcrypto, stew/result
|
import stew/ranges/stackarrays, eth/rlp/types, nimcrypto, stew/results
|
||||||
from auth import ConnectionSecret
|
from auth import ConnectionSecret
|
||||||
|
|
||||||
export result
|
export results
|
||||||
|
|
||||||
const
|
const
|
||||||
RlpHeaderLength* = 16
|
RlpHeaderLength* = 16
|
||||||
|
|
Loading…
Reference in New Issue