implemented key generation and authBlob functions