UNPKG

270 BJavaScriptView Raw
1// Copyright 2017-2022 @polkadot/util-crypto authors & contributors
2// SPDX-License-Identifier: Apache-2.0
3import { u8aConcat } from '@polkadot/util';
4export function sr25519KeypairToU8a({
5 publicKey,
6 secretKey
7}) {
8 return u8aConcat(secretKey, publicKey).slice();
9}
\No newline at end of file