assaabloy-ppi / salt-channel

The specification and the reference implementation of Salt Channel - a simple, light-weight secure channel protocol based on TweetNaCl by Bernstein.
MIT License
14 stars 11 forks source link

Minor issue in ExampleSession2.java #17

Closed ppmag closed 6 years ago

ppmag commented 6 years ago

Looks like 'pubkey' member is not used and is confusing here:

https://github.com/assaabloy-ppi/salt-channel/blob/master/src/saltchannel/dev/ExampleSession2.java#L26

   private static final byte[] pubkey = new byte[32];
    static {
        for (int i = 0; i < pubkey.length; i++) {
            pubkey[i] = 0x09;
        }
    }
franslundberg commented 6 years ago

Fixed, thanks for the report.