Update stream.js

fixing keySignature key reading from stream