diff options
author | obscuren <geffobscura@gmail.com> | 2015-03-03 19:25:44 +0800 |
---|---|---|
committer | obscuren <geffobscura@gmail.com> | 2015-03-03 19:25:44 +0800 |
commit | b909a5ec18d30456c6028593448233bba0937482 (patch) | |
tree | e6907d706ce68180550242444a11b4300ec65a4e /trie/secure_trie.go | |
parent | 1650b59cd93a29ea54328656a9318ffb10889ae5 (diff) | |
download | go-tangerine-b909a5ec18d30456c6028593448233bba0937482.tar go-tangerine-b909a5ec18d30456c6028593448233bba0937482.tar.gz go-tangerine-b909a5ec18d30456c6028593448233bba0937482.tar.bz2 go-tangerine-b909a5ec18d30456c6028593448233bba0937482.tar.lz go-tangerine-b909a5ec18d30456c6028593448233bba0937482.tar.xz go-tangerine-b909a5ec18d30456c6028593448233bba0937482.tar.zst go-tangerine-b909a5ec18d30456c6028593448233bba0937482.zip |
Trie => SecureTrie
Diffstat (limited to 'trie/secure_trie.go')
-rw-r--r-- | trie/secure_trie.go | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/trie/secure_trie.go b/trie/secure_trie.go index f49547ed8..b9fa376b8 100644 --- a/trie/secure_trie.go +++ b/trie/secure_trie.go @@ -30,3 +30,7 @@ func (self *SecureTrie) Delete(key []byte) Node { func (self *SecureTrie) DeleteString(key string) Node { return self.Delete([]byte(key)) } + +func (self *SecureTrie) Copy() *SecureTrie { + return &SecureTrie{self.Trie.Copy()} +} |