deprecate unofficial opt

This commit is contained in:
Mark Nadal 2020-05-21 14:48:07 -07:00
parent 4eb7d0d383
commit 00c48f172b
2 changed files with 3 additions and 3 deletions

2
sea.js
View File

@ -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;

View File

@ -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){