public void put(byte[] hash, DSAPublicKey key, boolean isOldBlock) throws IOException { try { store.put(key, key.asPaddedBytes(), empty, false, isOldBlock); } catch (KeyCollisionException e) { Logger.error(this, "Impossible for PubkeyStore: "+e, e); } }
public static Message createFNPSSKPubKey(long uid, DSAPublicKey pubkey, boolean realTime) { Message msg = new Message(FNPSSKPubKey); msg.set(UID, uid); msg.set(PUBKEY_AS_BYTES, new ShortBuffer(pubkey.asPaddedBytes())); if(realTime) msg.boostPriority(); return msg; }