Method: CcipherBox::SecureRing.from_encoded

Defined in:
lib/ccipher_box/secure_ring.rb

.from_encoded(bin) ⇒ Object



94
95
96
97
98
# File 'lib/ccipher_box/secure_ring.rb', line 94

def self.from_encoded(bin)
  st = BinStruct.instance.struct_from_bin(bin)
  encKeyConfig = EncKeyConfig.from_encoded(st.keyConfigs)
  SecureRing.new({ encSeed: st.cipherSeed, encKeyConfig: encKeyConfig, name: st.name })
end