Auth::Block
Inherits MessagePack::Serializable
TODO: Write documentation for Auth::Block
Constants
VERSION = "0.1.0"
Constructors
new(pull : MessagePack::Unpacker)
SourceClass methods
compute_stretched_ikey(iKey)
STEP 2 :: Stretch the key to 32 chars using scrypt IMPORTANT -- need to verify that these are correct parameters
generate_iKey
STEP 1 :: Generate a random string 17 chars in length to use as the invitation key
generate_keys(seed)
STEP 4B - Generate a signing key from the seed, and a verify key from the signing key
generate_seed(s_iKey, msg)
STEP 4A Generate a 32-byte random seed using the s_iKey and a message
verify_signature(verify_key, signature, msg)
Check the validity of a signature (for proof of concept)