Sha256: b5c4ecef32fd7ea77651fe6c265f8f5d811a7a3dc9828ef85c3a20b828590071
Contents?: true
Size: 758 Bytes
Versions: 1
Compression:
Stored size: 758 Bytes
Contents
# encoding: binary require 'spec_helper' RSpec.describe RbNaCl::SigningKey do let(:signing_key) { vector :sign_private } let(:message) { vector :sign_message } let(:signature) { vector :sign_signature } subject { described_class.new(signing_key) } it "generates keys" do expect(described_class.generate).to be_a described_class end it "signs messages as bytes" do expect(subject.sign(message)).to eq signature end it "serializes to bytes" do expect(subject.to_bytes).to eq signing_key end include_examples "key equality" do let(:key_bytes) { signing_key } let(:key) { described_class.new(key_bytes) } let(:other_key) { described_class.new("B"*32) } end include_examples "serializable" end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
rbnacl-3.1.2 | spec/rbnacl/signatures/ed25519/signing_key_spec.rb |