You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
BREAKING CHANGES:
- All deps of this module use Uint8Arrays instead of Buffers
- value and validity fields of IPNSEntries are now Uint8Arrays instead
of Strings as they are `bytes` in the protobuf definition
* @param {Buffer} pid peer identifier represented by the multihash of the public key as Buffer.
228
+
* @param {Uint8Array} pid peer identifier represented by the multihash of the public key as Uint8Array.
227
229
* @returns {Object} containing the `nameKey` and the `ipnsKey`.
228
230
*/
229
231
constgetIdKeys=(pid)=>{
230
-
constpkBuffer=Buffer.from('/pk/')
231
-
constipnsBuffer=Buffer.from('/ipns/')
232
+
constpkBuffer=uint8ArrayFromString('/pk/')
233
+
constipnsBuffer=uint8ArrayFromString('/ipns/')
232
234
233
235
return{
234
-
routingPubKey: newKey(Buffer.concat([pkBuffer,pid]),false),// Added on https://github.com/ipfs/js-ipns/pull/8#issue-213857876 (pkKey will be deprecated in a future release)
routingKey: newKey(Buffer.concat([ipnsBuffer,pid]),false),// Added on https://github.com/ipfs/js-ipns/pull/6#issue-213631461 (ipnsKey will be deprecated in a future release)
routingPubKey: newKey(uint8ArrayConcat([pkBuffer,pid]),false),// Added on https://github.com/ipfs/js-ipns/pull/8#issue-213857876 (pkKey will be deprecated in a future release)
routingKey: newKey(uint8ArrayConcat([ipnsBuffer,pid]),false),// Added on https://github.com/ipfs/js-ipns/pull/6#issue-213631461 (ipnsKey will be deprecated in a future release)
0 commit comments