forked from smartcontractkit/chainlink
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'develop' into feature/175208444/P2P-key-list
- Loading branch information
Showing
37 changed files
with
243 additions
and
293 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,18 @@ | ||
package cltest | ||
|
||
import ( | ||
"crypto/ecdsa" | ||
|
||
"github.com/ethereum/go-ethereum/accounts/abi/bind" | ||
"github.com/ethereum/go-ethereum/crypto" | ||
"github.com/ethereum/go-ethereum/accounts/keystore" | ||
) | ||
|
||
// OracleTransactor representsthe identity of the oracle address used in cltest | ||
// OracleTransactor represents the identity of the oracle address used in cltest | ||
var OracleTransactor *bind.TransactOpts | ||
var privateKey3cb8e3fd9d27e39a5e9e6852b0e96160061fd4ea *ecdsa.PrivateKey | ||
|
||
func init() { | ||
var err error | ||
privateKey3cb8e3fd9d27e39a5e9e6852b0e96160061fd4ea, err = | ||
crypto.HexToECDSA( | ||
// Extracted from (to abuse notation) keystore.DecryptKey( | ||
// []byte(key3cb8e3fd9d27e39a5e9e6852b0e96160061fd4ea), "password").D | ||
"40052315eab136be2379e23d4c7290e74a6212a018a13b1eafae4152df5d4daa") | ||
k, err := keystore.DecryptKey([]byte(DefaultKeyJSON), "password") | ||
if err != nil { | ||
panic(err) | ||
} | ||
OracleTransactor = bind.NewKeyedTransactor( | ||
privateKey3cb8e3fd9d27e39a5e9e6852b0e96160061fd4ea) | ||
OracleTransactor = bind.NewKeyedTransactor(k.PrivateKey) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 1 addition & 0 deletions
1
core/internal/fixtures/keys/testkey-27548a32b9aD5D64c5945EaE9Da5337bc3169D15.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
{"id": "1ccf542e-8f4d-48a0-ad1d-b4e6a86d4c6d", "crypto": {"kdf": "scrypt", "mac": "7f31bd05768a184278c4e9f077bcfba7b2003fed585b99301374a1a4a9adff25", "cipher": "aes-128-ctr", "kdfparams": {"n": 2, "p": 1, "r": 8, "salt": "99e83bf0fdeba39bd29c343db9c52d9e0eae536fdaee472d3181eac1968aa1f9", "dklen": 32}, "ciphertext": "ac22fa788b53a5f62abda03cd432c7aee1f70053b97633e78f93709c383b2a46", "cipherparams": {"iv": "6699ba30f953728787e51a754d6f9566"}}, "address": "27548a32b9ad5d64c5945eae9da5337bc3169d15", "version": 3} |
Oops, something went wrong.