envelope-js
Advanced tools
Comparing version 0.1.0 to 0.1.1
@@ -5,3 +5,3 @@ const { Buffer } = require('buffer') | ||
const { Derive, KeySlot, error } = require('./util') | ||
const { DeriveSecret, KeySlot, error } = require('./util') | ||
const zerodNonce = Buffer.alloc(na.crypto_secretbox_NONCEBYTES) | ||
@@ -14,3 +14,3 @@ const zerodMsgKey = Buffer.alloc(na.crypto_secretbox_KEYBYTES) | ||
const derive = Derive(feed_id, prev_msg_id) | ||
const derive = DeriveSecret(feed_id, prev_msg_id) | ||
@@ -17,0 +17,0 @@ const read_key = derive(msg_key, [LABELS.read_key]) |
{ | ||
"name": "envelope-js", | ||
"description": "new private message format for ssb", | ||
"version": "0.1.0", | ||
"version": "0.1.1", | ||
"homepage": "https://github.com/ssbc/envelope-js", | ||
@@ -6,0 +6,0 @@ "repository": { |
@@ -8,3 +8,3 @@ const test = require('tape') | ||
const decodeLeaves = require('./helpers/decode-leaves') | ||
const Derive = require('../util/derive-secret') | ||
const DeriveSecret = require('../util/derive-secret') | ||
@@ -16,3 +16,3 @@ test('derive-secret', t => { | ||
const { feed_id, prev_msg_id, msg_key } = vector.input | ||
const derive = Derive(feed_id, prev_msg_id) | ||
const derive = DeriveSecret(feed_id, prev_msg_id) | ||
@@ -19,0 +19,0 @@ const read_key = derive(msg_key, [labels.read_key]) |
const labels = require('envelope-spec/derive_secret/constants.json') | ||
const Derive = require('../../util/derive-secret') | ||
const DeriveSecret = require('../../util/derive-secret') | ||
@@ -8,3 +8,3 @@ const { FeedId, PrevMsgId, Key, print } = require('../helpers') | ||
const prev_msg_id = PrevMsgId() | ||
const derive = Derive(feed_id, prev_msg_id) | ||
const derive = DeriveSecret(feed_id, prev_msg_id) | ||
@@ -11,0 +11,0 @@ const msg_key = Key() |
const { FeedId, MsgId, Key, print } = require('../helpers') | ||
const Derive = require('../../util/derive-secret') | ||
const DeriveSecret = require('../../util/derive-secret') | ||
const KeySlot = require('../../util/key-slot') | ||
@@ -16,3 +16,3 @@ | ||
const derive = Derive(feed_id, prev_msg_id) | ||
const derive = DeriveSecret(feed_id, prev_msg_id) | ||
const key_slot = Buffer.alloc(32) | ||
@@ -19,0 +19,0 @@ KeySlot(derive).slot(key_slot, msg_key, recipient) |
const { FeedId, MsgId, Key, print } = require('../helpers') | ||
const Derive = require('../../util/derive-secret') | ||
const DeriveSecret = require('../../util/derive-secret') | ||
const KeySlot = require('../../util/key-slot') | ||
@@ -17,3 +17,3 @@ | ||
const derive = Derive(feed_id, prev_msg_id) | ||
const derive = DeriveSecret(feed_id, prev_msg_id) | ||
const key_slot = Buffer.alloc(32) | ||
@@ -20,0 +20,0 @@ KeySlot(derive).slot(key_slot, msg_key, recipient) |
@@ -9,3 +9,3 @@ const test = require('tape') | ||
const decodeLeaves = require('./helpers/decode-leaves') | ||
const { KeySlot, Derive } = require('../util') | ||
const { KeySlot, DeriveSecret } = require('../util') | ||
@@ -20,3 +20,3 @@ test('unslot', t => { | ||
const derive = Derive(feed_id, prev_msg_id) | ||
const derive = DeriveSecret(feed_id, prev_msg_id) | ||
const key_slot = Buffer.alloc(32) | ||
@@ -23,0 +23,0 @@ |
@@ -9,3 +9,3 @@ const test = require('tape') | ||
const decodeLeaves = require('./helpers/decode-leaves') | ||
const { KeySlot, Derive } = require('../util') | ||
const { KeySlot, DeriveSecret } = require('../util') | ||
@@ -20,3 +20,3 @@ test('unslot', t => { | ||
const derive = Derive(feed_id, prev_msg_id) | ||
const derive = DeriveSecret(feed_id, prev_msg_id) | ||
const msg_key = Buffer.alloc(32) | ||
@@ -36,3 +36,3 @@ | ||
const derive = Derive(feed_id, prev_msg_id) | ||
const derive = DeriveSecret(feed_id, prev_msg_id) | ||
const msg_key = Buffer.alloc(32) | ||
@@ -39,0 +39,0 @@ |
@@ -5,3 +5,3 @@ const { Buffer } = require('buffer') | ||
const { Derive, KeySlot } = require('./util') | ||
const { DeriveSecret, KeySlot } = require('./util') | ||
@@ -15,3 +15,3 @@ const zerodNonce = Buffer.alloc(na.crypto_secretbox_NONCEBYTES) | ||
const derive = Derive(feed_id, prev_msg_id) | ||
const derive = DeriveSecret(feed_id, prev_msg_id) | ||
const read_key = unboxKey(ciphertext, feed_id, prev_msg_id, trial_keys, { maxAttempts, derive }) | ||
@@ -26,3 +26,3 @@ if (!read_key) return null | ||
maxAttempts = 8, | ||
derive = Derive(feed_id, prev_msg_id) | ||
derive = DeriveSecret(feed_id, prev_msg_id) | ||
} = opts | ||
@@ -63,3 +63,3 @@ | ||
const { | ||
derive = Derive(feed_id, prev_msg_id) | ||
derive = DeriveSecret(feed_id, prev_msg_id) | ||
} = opts | ||
@@ -66,0 +66,0 @@ |
@@ -1,2 +0,2 @@ | ||
const Derive = require('./derive-secret') | ||
const DeriveSecret = require('./derive-secret') | ||
const KeySlot = require('./key-slot') | ||
@@ -8,3 +8,3 @@ const slpEncode = require('./slp-encode') | ||
module.exports = { | ||
Derive, | ||
DeriveSecret, | ||
KeySlot, | ||
@@ -11,0 +11,0 @@ slpEncode, |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
37382