Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
G
Geth-Modification
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
张蕾
Geth-Modification
Commits
0c666555
Commit
0c666555
authored
Feb 21, 2016
by
Ricardo Catalinas Jiménez
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
crypto: Add backward compatible aliases for Sha3{,Hash}()
parent
436fc8d7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
crypto.go
crypto/crypto.go
+4
-0
No files found.
crypto/crypto.go
View file @
0c666555
...
...
@@ -60,6 +60,10 @@ func Keccak256Hash(data ...[]byte) (h common.Hash) {
return
h
}
// Deprecated: For backward compatibility as other packages depend on these
func
Sha3
(
data
...
[]
byte
)
[]
byte
{
return
Keccak256
(
data
...
)
}
func
Sha3Hash
(
data
...
[]
byte
)
common
.
Hash
{
return
Keccak256Hash
(
data
...
)
}
// Creates an ethereum address given the bytes and the nonce
func
CreateAddress
(
b
common
.
Address
,
nonce
uint64
)
common
.
Address
{
data
,
_
:=
rlp
.
EncodeToBytes
([]
interface
{}{
b
,
nonce
})
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment