mirror of
https://github.com/amark/gun.git
synced 2025-03-30 15:08:33 +00:00
deprecate unofficial opt
This commit is contained in:
parent
4eb7d0d383
commit
00c48f172b
2
sea.js
2
sea.js
@ -659,7 +659,7 @@
|
||||
SEA.verify = USE('./verify');
|
||||
SEA.encrypt = USE('./encrypt');
|
||||
SEA.decrypt = USE('./decrypt');
|
||||
SEA.opt.aeskey = USE('./aeskey'); // not official!
|
||||
//SEA.opt.aeskey = USE('./aeskey'); // not official! // this causes problems in latest WebCrypto.
|
||||
|
||||
SEA.random = SEA.random || shim.random;
|
||||
|
||||
|
@ -37,14 +37,14 @@ describe('SEA', function(){
|
||||
var gun;
|
||||
var pub;
|
||||
describe('Utility', function(){
|
||||
it('generates aeskey from jwk', function(done) {
|
||||
/*it('generates aeskey from jwk', function(done) { // DEPRECATED!!!
|
||||
console.log("WARNING: THIS DOES NOT WORK IN BROWSER!!!! NEEDS FIX");
|
||||
SEA.opt.aeskey('x','x').then(k => {
|
||||
//console.log("DATA", k.data);
|
||||
expect(k.data.toString('base64')).to.be('Xd6JaIf2dUybFb/jpEGuSAbfL96UABMR4IvxEGIuC74=')
|
||||
done()
|
||||
})
|
||||
})
|
||||
})*/
|
||||
it('quickstart', function(done){
|
||||
SEA.pair(function(pair){
|
||||
SEA.encrypt('hello self', pair, function(enc){
|
||||
|
Loading…
x
Reference in New Issue
Block a user