You cannot select more than 25 topics
			Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
		
		
		
		
		
			
		
			
				
	
	
		
			15 lines
		
	
	
		
			408 B
		
	
	
	
		
			TypeScript
		
	
			
		
		
	
	
			15 lines
		
	
	
		
			408 B
		
	
	
	
		
			TypeScript
		
	
import { assert } from 'chai';
 | 
						|
 | 
						|
import { keyPair, sign, verify } from '../../updater/curve';
 | 
						|
 | 
						|
describe('updater/curve', () => {
 | 
						|
  it('roundtrips', () => {
 | 
						|
    const message = Buffer.from('message');
 | 
						|
    const { publicKey, privateKey } = keyPair();
 | 
						|
    const signature = sign(privateKey, message);
 | 
						|
    const verified = verify(publicKey, message, signature);
 | 
						|
 | 
						|
    assert.strictEqual(verified, true);
 | 
						|
  });
 | 
						|
});
 |