From b909a5ec18d30456c6028593448233bba0937482 Mon Sep 17 00:00:00 2001 From: obscuren Date: Tue, 3 Mar 2015 12:25:44 +0100 Subject: Trie => SecureTrie --- trie/secure_trie.go | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'trie') 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()} +} -- cgit