Encode and decode node functions added
Added deriving of a shared key methods